Postgres Split Array Python Initialize Dictionary