Functional test cleanup

* Change the default user in functional tests to "user1"
* Remove unused imports in functional tests
* Break up lines that are too long in functional tests

Towards making the file conform to the PEP8 python code style guide.