def remodnav_reader(data, screensize, pursuits=False):
    """
    Helper function to read and preprocess REMoDNaV data for use in
    interactive python sessions.

    :param data: path to a REMoDNaV output
    :param screensize: list, screendimensions in x and y direction
    :param pursuits: if True, pursuits will be relabeled to fixations
    """
    from multimatch_gaze.tests import utils as ut
    data = ut.read_remodnav(data)
    try:
        assert len(screensize) == 2
    except:
        raise ValueError(
            'Screensize should be the dimensions of thescreen in x and y direction, such as [1000, 800]. I received {}.'
            .format(screensize))
    if pursuits:
        data = ut.pursuits_to_fixations(data)
    data = ut.preprocess_remodnav(data, screensize)
    return data
