Python 3 port of PyME