Minor fixes to table.py