Support for infinite sets in python