Python Newton prototype