PEP8 and indentation fixes/customizations
Unicode improvements for python 3 compatibility