Newtons Method Python Code Compiler