Now works as standalone script, pep8 compatibility