table.py: added `first` and `last` properties