def METHOD_NAME(self, text):
    page = lxml.html.fromstring(text)
    elements = page.xpath('//form//input[@type="hidden"]')
    form = {x.attrib['name']: x.attrib['value'] for x in elements}
    return (form, page.forms[0].action)