#NEWLINE# def PackLocation( location ) : #NEWLINE# #INDENT# "Converts 'location' named tuple into a packed, base64-hex-encoded\n  string representation for storage in DynamoDB.\n  " #NEWLINE# packed = struct . pack ( '>ddd' , * [ float ( x ) for x in location ] ) #NEWLINE# return base64hex . B64HexEncode ( packed )