Fixed test failure on python3 (it was caused by scripttest library).
Make pep8 happy.
Remove unnecessary line from 'test_check_submodule_addition' test.