Added support for ancient Python versions (aka 2.5)