fix imports and whitespace
bunch of pep8 fixes