Added python to remove trailing spaces.