import pprint
from BeautifulSoup import BeautifulSoup
soup = BeautifulSoup(docTxt)
groupedData = []
for row in soup.findAll('tr'):
    data = {}
allTDs = row.findAll('td')
for x in range(0, len(allTDs) - 1, 2):
    data[allTDs[x].renderContents().strip()] = allTDs[x + 1].renderContents(
        ).strip()
groupedData.append(data)
pprint.pprint(groupedData)
Parsing HTML Tables with BeautifulSoup