if valuecell is None:
    continue
header = ''.join([str(t).strip() for t in headercell.findAll(text=True)])
value = ''.join([str(t).strip() for t in valuecell.findAll(text=True)])
info[header] = value
Parsing HTML page using beautifulsoup