Postgresql Check If String Is Uuid Python