def unpack_ttl(r, pos): return reduce(lambda x, y: (x << 8) | y, map(ord, r[pos:pos + 4]))
def sum(self, *values): return reduce(lambda a, b: a + b, values, 0)
def product(self, *values): return reduce(lambda a, b: a * b, values, 1)
def unpack_ttl (r,pos): return reduce ( lambda x,y: (x<<8)|y, map (ord, r[pos:pos+4]) )
def sum (self, *values): return reduce (lambda a,b: a+b, values, 0)
def product (self, *values): return reduce (lambda a,b: a*b, values, 1)