python3 and pep8 compatibility