title: Getting the name of the active window
body: <p>I want to write a python script on Windows that saves the title of the program that the user uses at a given time like the <a href="http://www.rescuetime.com" rel="noreferrer">http://www.rescuetime.com</a> .
  I don't want to use rescuetime because of privacy consideration but instead write a script that does something similar myself to capture data about how much I use my computer.</p>
  
  <p>Is there some easy command that I can use to read that information?</p>