Thanks that is helpful, but that post does get a bit complicated and hard to follow. I've got a solution that is working, but I'd like to be able to do one more thing and that is dynamically name a tool from python code. So I import a toolbox in python then I've got this line:
arcpy.SelectProperty_toolbox(valuationID,"","",buffer,"")
and "SelectProperty" is the name of the script. I want this name to be generated dynamically from the code. So if I could have that bit as a variable like this:
arcpy.{variable}_toolbox(valuationID,"","",buffer,"")
that would be great, but don't know how to do it?