'getAppExt(loops=float(\'inf\'))
Application extention. This part specifies the amount of loops.
If loops is 0 or inf, it goes on infinitely.'

def getAppExt(self, loops=float('inf')):

    if ((loops == 0) or (loops == float('inf'))):
        loops = ((2 ** 16) - 1)
    if True:
        bb = '!\xff\x0b'
        bb += 'NETSCAPE2.0'
        bb += '\x03\x01'
        bb += intToBin(loops)
        bb += '\x00'
    return bb
