this is a modified version of automate.py
added a transiotion state returning using input string function

5_dfa_read.py takes a string and a dfa.txt and test if the input string is valid for that language
well, it was tested ok, but i think the input style is not alright
we could change it later