Added FlowManager functional tests
Cleanup of style for pep8