fixed typo + restored backwards compatibility
more PEP8
Merge pull request #9 from indeyets/patch-1

fixed typo + restored backwards compatibility