import binascii import urllib2 import json from decimal import Decimal from filecache import filecache, DAY import types_pb2 as proto_types def op_push_data(data): l = len(data) if l < 0x4C: return chr(l) + data elif i < 0xFF: return '\x4C' + chr(l) + data elif i < 0xFFFF: return '\x4D' + struct.pack("