Fix Py_Main for python 3