Postgresql Row To Array In Python