Fixes Python 2.6 compatibility. Last Python 2.6 issue fixed.