Fixed pep8 errors and ci build