Bigquery Group By With Array In Python