Merge pull request #35 from gtnx/master

Make it compatible with python < 2.7 + bugfix in utils