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())
                                                        print 'XBMC2: SSDP modelName:', modelName.firstChild.data