Removed trailing space; fixed formatting to pass pylint/flakes/pep