Compatible with python2.6

Change-Id: I18ae91b88d3689368303c4e6bbcdee3ea08635a2