restore Python2.6 compatability