Python 2.3's os module has a getloadavg() function. Verify that it works on both Linux and Solaris and us it instead of 'cat /proc/loadavg'/parsing output from 'uptime'.