support python 2.6

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>