basic parsing and manipulating matrices in python