python implementation of XBMC JSON API