The exec command can be used to execute PyXPlot commands contained within string variables. For example:
terminal="eps" exec "set terminal %s"%(terminal)
It can also be used to write obfuscated PyXPlot scripts.