code: def inttoLEB128(intinput):
      '''
      Convert int/long to unsigned LEB128 format hex
      '''
  
      binstr = str(bin(intinput)) \
               .lstrip("0b").replace("b","").replace("L","") \
               .replace("'","").replace('"',"")
      if len(binstr) % 7:
          binstr = binstr.zfill(len(binstr) + 7 - (len(binstr) % 7))
      bytelist = ""
      for i in range(len(binstr) // 7):
          if i < ((len(binstr) // 7) - 1):
              pad = "1"
          else:
              pad = "0"
          currbyte = binstr[(len(binstr) - (7*i + 7)):(len(binstr) - (7*i))]
          currbyte = pad + currbyte
          currbyte = dechex(int(currbyte,2))
          # assert len(currbyte) == 2
          bytelist = bytelist + currbyte
      return bytelisf inttoLEB128(intinput):
      '''
      Convert int/long to unsigned LEB128 format hex
      '''
  
      binstr = str(bin(intinput)) \
               .lstrip("0b").replace("b","").replace("L","") \
               .replace("'","").replace('"',"")
      if len(binstr) % 7:
          binstr = binstr.zfill(len(binstr) + 7 - (len(binstr) % 7))
      bytelist = ""
      for i in range(len(binstr) // 7):
          if i < ((len(binstr) // 7) - 1):
              pad = "1"
          else:
              pad = "0"
          currbyte = binstr[(len(binstr) - (7*i + 7)):(len(binstr) - (7*i))]
          currbyte = pad + currbyte
          currbyte = dechex(int(currbyte,2))
          # assert len(currbyte) == 2
          bytelist = bytelist + currbyte
      return bytelist
docs: Convert int/long to unsigned LEB128 format hex