fixed #7 encoding and pep8 validation