An exercise in writing a xbmc addon