def parse_file_list(data):
    """
    Parse the file list contained in the torrent dict from the Gazelle API.

    :param: data The string to parse

    :return: A dict. The keys are the relative paths of the files and the
             values are the size of the file in bytes.
    """
    files = {}
    for x in data.split("|||"):
        name, size = x.split("{{{")
        size = int(size[:-3])
        files[name] = size
    return files