docs: def getAppExt(self, loops=float('inf')):
          """ getAppExt(loops=float('inf'))
  
          Application extension. This part specifies the amount of loops.
          If loops is 0 or inf, it goes on infinitely.
  
          """
  
          if loops == 0 or loops == float('inf'):
              loops = 2 ** 16 - 1
          bb = b""
          if loops != 1:  # omit the extension if we would like a nonlooping gif
              bb += b"\x21\xFF\x0B"  # application extension
              bb += b"NETSCAPE2.0"
              bb += b"\x03\x01"
              bb += intToBin(loops)
              bb += b'\x00'  # end
          return bb