Update pysolr.py

Updated to work with Python 2.5