Postgresql Create Array In Python Definition Function