supporting python 2.6