define text obj python class
add diff highlight for mac