py: Programming assignment 1 - Converting regexp to eps-NFA (Automata on coursera.org)