Thread:DoCheonGong/@comment-3225604-20160608091907/@comment-4189499-20160701063942

I've got good news and bad news. The good news is, I got the script working! It now outputs a table of tables with the syntax we decided. The bad news is that Wikia isn't allowing it to be uploaded to a Module page, claiming a syntax error because I don't close the first table on the second line, despite w:c:dev:Lua_reference_manual saying that tables can contain other tables. I'll take that one to Community Central to try to find an answer.

I did upload the tables I got to the module's talk page though, so it can still be inspected by others. See Module talk:LuaDB. The Python code and shell script from which the Python script was run can be found at User:Imamadmad/Sandbox MW to Lua table script. I don't know how good my code is from a code quality perspective (I'm still studying CompSci and so don't have the skills of a proper programmer) but hopefully it's readable enough.