How To Trim White Spaces In Python Class