Python Extract String Between Two Strings Are Anagrams