took the latest version from master and removed the with-statements (urgently needing this on python2.4 right now due to a customer with thrashing problems)
away with the tenary.  hard-coded list of commands as for now, no time to do this properly