file encoding and pep 8 fixes