Postgres Split Array Python Question