fix #7 encoding and pep8 validation