add newton method in Python