I am working on mechanize with python.
The
try with:
[f.id for f in br.forms()]
It should return a list of all form ids from your page