Python powered spell checked with variable stack depth