global: python 2.6 fixes

* Fixes Python 2.6 issues.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>