Fix minor whitespace issues in profile.py