def log(msg): pass # if is_standalone: # print msg # else: # import threading # xbmc.log("%s - %s" % (threading.currentThread(), msg),level=xbmc.LOGNOTICE)