def wget_wrapper(command):
    commands = re.findall('(wget.*?);', command)
    size = sum(get_wget_download_size(wget_command) for wget_command in commands)

    while size / 1024 > get_fs_free_space():
        print("[!] Not enough space to proceed with the download.")
        human_size, um = byte_to_human(size)
        answer = raw_input("[!] Please free %s %s and proceed, or type \'n\' to skip the download. [Y/n] "
                %('{0:.3g}'.format(human_size), um))
        if answer == 'n':
            return False
    return True
return a list of tuples for each stage.
dataset/ETHPy150Open owtf/owtf/install/space_checker_utils.py/wget_wrapper--crossover with--dataset/ETHPy150Open Mouse-Imaging-Centre/pydpiper/pydpiper/pipeline.py/flatten_pipeline