Implemented workaround to make intersection method of RangeSet class
work correctly with Python 3.