how to remove characters from string in python