Newtons Method Python Code Examples