fixed trailing whitespaces and stuff pylint complained about.