opener = urllib.request.build_opener(cookie)
headers = {'User-Agent':
    'Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.14) Gecko/20080609 Firefox/2.0.0.14'
    , 'Accept':
    'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,text/png,*/*;q=0.5'
    , 'Accept-Language': 'en-us,en;q=0.5', 'Accept-Charset': 'ISO-8859-1',
    'Content-type': 'application/x-www-form-urlencoded', 'Host':
    'm.facebook.com'}

def login(self):
    pass
Logging into facebook with python