Changed travis config, fixed some flake8 style warnings, added exception for import reload function, replaced format to % for string formatting