Python program to remove duplicate characters from a string