Fix line numbers in note on docs
Fix pep8 and assertIsInstance (#7)
Fix up pyflakes on unittests