if modelName.firstChild.data in ('Kodi', 'XBMC Media Center', 'XBMC'):
                                                    if debug:
                                                        with open(os.path.join(eg.folderPath.RoamingAppData, 'EventGhost', 'plugins', 'XBMC2', 'ssdp.log'), 'a+') as f:
                                                            f.write(data)
                                                            f.write(urllib2.urlopen(headers['LOCATION']).read())