'Returns the idle time of the least idle session in seconds. If
no sessions are connected it returns nothing.'

@property
def idle_time(self):

    idle = [session.cmd_last_visible for session in self.sessions.all()]
    if idle:
        return (time.time() - float(max(idle)))
    return None
