Recall first edit_two under the for loop you created from edit_one where you include the next word with allow_switches
then the next code line should be edit_two_set.update(edit_two)
Also it is not allow_switches=True, but should be allow_switches=allow_switches