Pin deform, 'unpin' psycopg2