C to python translator using Lex