python interface: expose construction of AST node from union map