Started implementing autocalibration in python. Matrix inversion