Use uniform "from . import xxx" syntax for ease of patching
functools backport for python 2.4
Use functools backport if functools is not available (python 2.4)
Merge pull request #88 from p-push/python-24-compat

Python 2.4 compatibility