json imported for newer python versions, simplejson if exception

simple json is depreciated in newer version of python beyond 2.5 and uses json instead. Code is modified to import json for newer version of python while simplejson is used for older verisions