from BeautifulSoup import BeautifulSoup, Comment
t = ('<html><table>' + '<tr><td class="label"> a </td> <td> 1 </td></tr>' +
    '<tr><td class="label"> b </td> <td> 2 </td></tr>' +
    '<tr><td class="label"> c </td> <td> 3 </td></tr>' +
    '<tr><td class="label"> d </td> <td> 4 </td></tr>' + '</table></html>')
bs = BeautifulSoup(t)
results = {}
for row in bs.findAll('tr'):
    aux = row.findAll('td')
results[aux[0].string] = aux[1].string
print(results)
BeautifulSoup, a dictionary from an HTML table