def vtp(thermo): thermo['pActual'] = thermo['Pressure'] v0 = ideal.vtp(thermo) thermtuple = 'LK vtp',thermo #print (thermtuple, type(thermtuple)) v = scipy.optimize.newton(vftp, v0, None, thermtuple) return v