A python version of the superfit code