short python code, comparing words to test for anagrams