translated table.py to table.coffee