code: def load_with_datetime(pairs):
      
      d = {}
      for k, v in pairs:
          if isinstance(v, basestring):
              try:
                  d[k] = dateutil.parser.parse(v)
              except ValueError:
                  d[k] = v
          else:
              d[k] = v             
      return d
docs: Deserialize JSON into python datetime objects.