Fix errors and warnings in the travis-ci build related to indentation and whitespace in python files.