remove item from set and list when pop is called remove occasionaly throws an error
remove unnecessary variable return an empty set if the file doesn't exist xrange is range in python3