minor Python 3 compatibility fixes
Merge pull request #3 from dol-sen/mfix

minor Python 3 compatibility fixes