py_to_lua fix for python 2