- converted to modern rich comparison operators introduced in python 2.7 and 3