converting a list of integers into range in python,"[(0, 4), (7, 9), (11, 11)]"