Postgres Array Comparison Python W3schools