Removing control characters from a string in python,return ''.join(c for c in line if ord(c) >= 32)