Python parser for CS143 AST serialization