How to deal with nested forms?(ERROR: mechanize._form.ParseError: nested FORMs)
br.select_form(predicate=lambda f: f.attrs.get('id', None) == 'email-form')
This may help you in your function for selecting the form..
I'm trying to submit a form in a website and when I run the code, it gives me the error:  

mechanize._form.ParseError: nested FORMs

So I checked and in the website, there are 2 forms that are inside each other.
the form that I need, which is the first one, is closed properly.
Is there anyway to deal with that?