'Application extention. Part that secifies amount of loops.
if loops is 0, if goes on infinitely.'

def _get_app_ext(self, loops=0):

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