Update sets.py

Added New function to IPSet to allow non-contiguous ranges to be represented as a list of ranges.