def _colonHex(val, bytecount):
 pieces = []
 for i in range((bytecount - 1), (-1), (-1)):
  piece = (((255 << (i * 8)) & val) >> (i * 8))
  pieces.append(('%02x' % piece))
 chStr = ':'.join(pieces)
 return chStr

def _colonHex ( val , bytecount ) : pieces = [ ] for i in range ( ( bytecount - 1 ) , ( - 1 ) , ( - 1 ) ) : piece = ( ( ( 255 << ( i * 8 ) ) & val ) >> ( i * 8 ) ) pieces . append ( ( '%02x' % piece ) ) chStr = ':' . join ( pieces ) return chStr
generate colon-hex string .