PG hash operations require integer: coerce python's hash() into a 32 bit signed integer