Fix various PEP-8 warnings
Add encoding utf-8 to *.py files