Parse simple regular expression string and create non deterministic
finite state machine using Python dictionary. Codes are more.