fixed typo + restored backwards compatibility
more PEP8