Clean xbmc.py test code