title: In python how can I get current users SID in Windows?
body: <p>I need to get the SID of the currently logged on user from a python script.  One option is to read the return text when shelling to a command prompt command whoami /user.  But this is really ugly.  Surely there must be a better way?</p>