compatibility with python 2.6
Merge remote-tracking branch 'origin/master'