C Parse written in Python