code: def byte_length(self):
          
          sum = 0
          for r in self:
              if r.is_open():
                  return None
              sum += r.byte_length()
          return sum
docs: :returns: sum of lengthes of all ranges or None if one of the ranges is open
          :rtype: int, float or None