'Helper to process the xml response from AWS'

def _process_response(self, response, marker_elems=None):

    body = response.read()
    if (self.debug == 2):
        print body
    if ('<Errors>' not in body.decode('utf-8')):
        rs = ResultSet(marker_elems)
        h = handler.XmlHandler(rs, self)
        xml.sax.parseString(body, h)
        return rs
    else:
        raise MTurkRequestError(response.status, response.reason, body)
