Implement AST extension for Python objects and Python semantics class.