Newton Raphson Method Python Program