python replace list of characters in string