Bcfg2 1.3.5 python2.4 compat

This fixes several python 2.4 compatibility issues that had crept into the server since 1.3.3.