c parser written in python