added pep8 check on write