how to check if two strings are anagram or not in python