Python Intervals Class sample code