Python implementation of Tribool data type.