Newton Raphson Method Python Programmer