Refactored views and test_views to comply with PEP8
Switched around imports for funsies.
Not sure what changed.