Root Finding Algorithm Python Template Engine Json