def get_version(data):
    """Gets the version of the file structure.

    Returns the version tag of the data, else returns 1.

    Arguments:
    data - the data to get the version of
    """
    try:
        return data['version']
    except KeyError:
        return 1
