Newtonian method in python