params = {'user_login': self.USER, 'password': self.PASSWORD}
data = urllib.parse.urlencode(params)
request = mechanize.Request(loginURL)
response = mechanize.urlopen(request, data=data)
Sending a POST with mechanize and requests.