Algorithm Of Newton Raphson Method Python