title: How to get the user login/logoff time using Python for osx or macos
body: <p>I am working on a project where, I have to get logoff, logon, lock, unlock, console connect, disconnect, service start/stop using python. Can anyone help me regarding this.</p>