A standard scripting library with some useful tools should be added to SMC, written in pure Ruby. See [this forum post](http://smc.quintilianus.eu/viewtopic.php?id=9) for ideas.