Postgres Aggregate Into Array In Python Declaration