def users():
    retlist = []
    rawlist = cext.users()
    localhost = (':0.0', ':0')
    for item in rawlist:
        user, tty, hostname, tstamp, user_process = item
        # note: the underlying C function includes entries about
        # system boot, run level and others.  We might want
        # to use them in the future.
        if not user_process:
            continue
        if hostname in localhost:
            hostname = 'localhost'
        nt = _common.suser(user, tty, hostname, tstamp)
        retlist.append(nt)
    return retlist
Set the notification context.
dataset/ETHPy150Open giampaolo/psutil/psutil/_pssunos.py/users--crossover with--dataset/ETHPy150Open PureMVC/puremvc-python-standard-framework/src/puremvc/patterns/observer.py/Observer.setNotifyContext