Removed redundant json/simplejson checks in compat.py