Made some formating in Python source files based on pylint's suggestions.