Postgresql Create Array In Python Code