def discover(self, *args, **kwargs): rokus = [] for device in discovery.discover(*args, **kwargs): o = urlparse(device.location) rokus.append(Roku(o.hostname, o.port)) return rokus