[REF] Refactor to make pep8-compliant.