- change magic string literal to a b'' string so that the comparison works in python 3 - expand timestamp tuples (struct.unpack always returns a tuple) before attempting to cast to float.