using isspace and isupper methods in python bob