Back to compatibility with py2.4