Python file takes an NFA described in a txt file and converts it to a regular expression from a new start state to a new end state