python based PostgreSQL SQL parser