This is a fairly complete amaroK remote control class, extremely useful for amaroK scripts and other applications. Basically, you can remote control amaroK by calling methods from an amaroKProxy instance. In addition, it implements the Observer/Observable pattern so you can deal with events in an object-oriented, loosely coupled fashion. Even better, you can call an amaroKProxy instance's collection.getSong(filename) method to get a Song object, with track, artist, album name, and elegant "Artist - Track name" strings.
Documentation is included. This package requires python-Observable, available at http://rudd-o.com/projects/python-observable/ (an RPM package for Fedora has been linked here for convenience).