> File "./Parser/asdl_c.py", line 744 > print(auto_gen_msg, file=f) I think asdl_c.py should be formulated in a way that is compatible with 2.x. It already uses f.write in many places; the few remaining ones should be updated. Regards, Martin