Complete C lexical analyser in python