Get the oid in postgresql for a user defined type using psycopg2.