Migrate to Python 3; bug fix

Updated the example and core code to Python 3.
Fixed issue where tables with multiple column dimensions would not
display correctly; column header generation code was adjusting rowspan
rather than colspan.