code: def i2le_script(number):
      '''Convert int to signed little endian (l.e.) hex for scripts
      Args:
          number  (int): int value to convert to bytes in l.e. format
      Returns:
                  (str): the hex-encoded signed LE number
      '''
      if number == 0:
          return '00'
      for i in range(80):
          try:
              return number.to_bytes(
                  length=i,  # minimal bytes lol
                  byteorder='little',
                  signed=True).hex()
          except Exception:
              continuf i2le_script(number):
      '''Convert int to signed little endian (l.e.) hex for scripts
      Args:
          number  (int): int value to convert to bytes in l.e. format
      Returns:
                  (str): the hex-encoded signed LE number
      '''
      if number == 0:
          return '00'
      for i in range(80):
          try:
              return number.to_bytes(
                  length=i,  # minimal bytes lol
                  byteorder='little',
                  signed=True).hex()
          except Exception:
              continue
docs: Convert int to signed little endian (l.e.) hex for scripts
      Args:
          number  (int): int value to convert to bytes in l.e. format
      Returns:
                  (str): the hex-encoded signed LE number