How to write the Visitor Pattern for Abstract Syntax Tree in Python? How to write the Visitor Pattern for Abstract Syntax Tree in Python? python python