More Ruby to Python porting of the supertux-editor
autopep'ed the source and some more fixing