fixed bad whitespace regex for python