title: Get window title with python?
body: <p>I'm trying to write a python program that checks every X seconds if the 'window title' for 'last.fm' (<a href="http://www.last.fm/download" rel="nofollow noreferrer">http://www.last.fm/download</a>) changed, if it did (or it's the first time I run the program) it should use use the string captured from the window title to search for the song's lyrics and display them to the user. </p>
  
  <p>I'm currently using KDE4 as my desktop environment and I just need to be 'pointed in the right direction' on how I can capture the string that belongs to the window title for last.fm client. </p>
  
  <p>Thanks! </p>