Postgresql Text To Array Python Initialize Matrix