Fixed python files for py3.x I think, though I hate python 3 string handling