Python PostgreSQL adapter