StratumWorkSource: Python 2.x compatibility hack