finished anagram.py