maketable.py

obtained from: https://stackoverflow.com/questions/11347505/what-are-some-approaches-to-outputting-a-python-data-structure-to-restructuredte

example:

print make_table( [ [‘Name’, ‘Favorite Food’, ‘Favorite Subject’],
[‘Joe’, ‘Hamburgrs’, ‘I like things with really long names’], [‘Jill’, ‘Salads’, ‘American Idol’], [‘Sally’, ‘Tofu’, ‘Math’]])
Name Favorite Food Favorite Subject
Joe Hamburgrs I like things with really long names
Jill Salads American Idol
Sally Tofu Math