Fix compatibility with python 2.6

I would love to use pint in my projects but unfortunately I am bound to python 2.6 in my institute (ESRF).
This pull request aims to make pint python 2.6 compatible.