Fix py3
Merge pull request #378 from nephila/feature/py3_last

Fix for python 3