Newtons Method Python Codes For Games