human
Write me a the Python code you requested given the following:
Complete the below
def launch_remote_followfiles(host, lastlines_dirpath, follow_paths):

    ''''Launch followfiles.py remotely on follow_paths.'
    '''
assistant
#Here is the Python code you requested.
    logging.info('Launching    followfiles    on    target:    %s,    %s,    %s', host.hostname, lastlines_dirpath, str(follow_paths))
    installed_pythons = list_remote_pythons(host)
    supported_python = select_supported_python(installed_pythons)
    if (not supported_python):
        if (DEFAULT_PYTHON in installed_pythons):
            logging.info('No    versioned    Python    binary    found,    defaulting    to:    %s', DEFAULT_PYTHON)
            supported_python = DEFAULT_PYTHON
        else:
            raise FollowFilesLaunchError('No    supported    Python    on    host.')
    remote_monitordir = copy_monitordir(host)
    remote_script_path = os.path.join(remote_monitordir, 'followfiles.py')
    followfiles_cmd = ('%s    %s    --lastlines_dirpath=%s    %s' % (supported_python, remote_script_path, lastlines_dirpath, '    '.join(follow_paths)))
    remote_ff_proc = subprocess.Popen(host._make_ssh_cmd(followfiles_cmd), stdin=open(os.devnull, 'r'), stdout=subprocess.PIPE, shell=True)
    def wait_for_crash():
        '\n                                Warning:    this    is    not    threadsafe    due    to    the    call    to\n                                host.job.record()\n                                '
        time.sleep(5)
        doa = remote_ff_proc.poll()
        if doa:
            logging.fatal('Failed    to    launch    followfiles    on    target,    aborting    logfile    monitoring:    %s', host.hostname)
            if host.job:
                host.job.record('WARN', None, 'logfile.monitor', 'followfiles    launch    failed')
    crash_waiter = threading.Thread(target=wait_for_crash)
    crash_waiter.start()
    return remote_ff_proc