using a third-party library, sqlparse, which is better than my hand-rolled parser.