Python: Fix unit test in anagram assignment