fix for python2
Merge branch 'SuperManitu:python3' from issue #36