How would i go about doing this and is there an easier way to do this rather than reading through the entire source code, can mechanize specifically search for labels within that form or some other shortcut?
I'm not that familiar with mechanize in python, but with mechanize in ruby for instance, you use an html parser to search through the html. python's html parser is BeautifulSoup or libxml. BeautifulSoup is easier to install--libxml has lots of dependencies and can be a bear to install. Here is a BeautifulSoup example:
from BeautifulSoup import BeautifulSoup as bs
import re
soup = bs(open('html.html'))
form = soup.find(id="form1")
labels = form.findAll('label', text=re.compile("Character \d+") )
labels = labels[:3]
for label in labels:
print(label.string)
--output:--
Character 5  
Character 6  
Character 7