Remove 'coding=utf8' (unnecessary)
Formatting and logic cleanup
Indent with spaces, not tabs (PEP8)
More PEP8