Newtons Method Python Coder