code: def launchRequest(request):
      '''
          Method to launch a given request.
          
          :param request: The request object.
          
          :return:    A dictionary containinf the results of the person and a list of dicts containing the references for the record.
      '''
      person = {}
      records = []
     
      try:
          response = request.send()
          # Trying to recover a person object. This is a dict:
          try:
              person = (response.person).to_dict()
          except:
              pass                
          # Trying to recover a list of record objects. This is a list dicts
          try:
              aux = response.records 
              records = [r.to_dict() for r in aux]
          except:
              pass
      except SearchAPIError as e:
          print e.http_status_code, e    
          
      return  person, recordf launchRequest(request):
      '''
          Method to launch a given request.
          
          :param request: The request object.
          
          :return:    A dictionary containinf the results of the person and a list of dicts containing the references for the record.
      '''
      person = {}
      records = []
     
      try:
          response = request.send()
          # Trying to recover a person object. This is a dict:
          try:
              person = (response.person).to_dict()
          except:
              pass                
          # Trying to recover a list of record objects. This is a list dicts
          try:
              aux = response.records 
              records = [r.to_dict() for r in aux]
          except:
              pass
      except SearchAPIError as e:
          print e.http_status_code, e    
          
      return  person, records
docs: Method to launch a given request.
          
          :param request: The request object.
          
          :return:    A dictionary containinf the results of the person and a list of dicts containing the references for the record.