def PackLocation(location):
 packed = struct.pack('>ddd', *[float(x) for x in location])
 return base64hex.B64HexEncode(packed)

def PackLocation ( location ) : packed = struct . pack ( '>ddd' , * [ float ( x ) for x in location ] ) return base64hex . B64HexEncode ( packed )
converts location named tuple into a packed .