pyTab object-oriented implementation before large changes to the tab class