Newtons Sqrt Method Python