title: MPRIS + Python (dbus): reading and writing properties
body: <p>I have already checked this link: <a href="https://stackoverflow.com/questions/4277814/how-to-handle-properties-of-a-dbus-interface-with-python">How to handle properties of a dbus interface with python</a>. However, that only lists an API... but I don't know where that API comes from.</p>
  
  <p>I just started working with dbus (pretty excited about this, to be honest ^__^ just not too happy with the documentation I've found) on python and I was wondering if I could just get some sample code.</p>
  
  <p>I'm using MPRIS specifically for Rhythmbox, although it 'should' be the same for all.</p>
  
  <p>I know I can access and have fun witht he methods by doing the following:</p>
  
  <pre><code>import dbus
  bus = dbus.SessionBus()
  proxy = bus.get_object('org.mpris.MediaPlayer2.rhythmbox','/org/mpris/MediaPlayer2')
  player = dbus.Interface(proxy, 'org.mpris.MediaPlayer2.Player')
  playlists = dbus.Interface(proxy, 'org.mpris.MediaPlayer2.Playlists')
  tracklist = dbus.Interface(proxy, 'org.mpris.MediaPlayer2.TrackList')
  </code></pre>
  
  <p>However, I wish to know about properties. Some sample code will suffice :) Thanks!</p>