Support use with python version 2.4