Python port of heroku-pg-extras