VERY simple SQL AST in Python