Added support for Python 2.5

It was quite easy to add 2.5 support, add with statement and import simplejson if not json was found.