making some changes suggested by pylint
some changes from pylint suggestions
whitespace