find repeated characters in a string python