how to check if string has the same characters in python,len(set('aaaa')) == 1