scipy is now a requirement
add missing import
fix some pep8 errors