Postgres Flatten Array Numpy Install Python