I am using psycopg2 to try to insert an entry into a table where the type of the data is the Postgres type \'uuid\'.
According to this page, I should be able to dire
uuid_entry = str(uuid.uuid4())
This works for me. Not sure if it is the right approach.