Well, yes sure. However you may want to actually review a bit what you THINK would happen. I mean if you really wanted to be able to change windWal, youd actually make a attribute out of it and sotore it in some node so thet users may change it.
expr is offcourse just a astring so obviously you could od this:
expr = "joint1.rz = sin(time)"+str(windVa)+"noise(time);"
this would quite obviously freeze your value, offcourse since it livee sin a different space youd noever be bale to read it directly form python unless it was declared global in the main namespace, which owuld make yoru script un insulated. Offcourse you could amek a a command and fetch the value in ascript. But then adding a ttribute does the same thing AND its going to make users a gui to work with.