Try mechanize's form.submit