Python Insert Into Postgresql Table Constraints