fix small errors 1st pass
PEP8 reformat, bye-bye 2 spaces
#114 fixed unicode support

Ported to recent python version, but tested only under 2.7