from ch.psi.pshell.bs import Stream as Stream
try:
    s.close()
except:
    pass    
s = Stream("stream", bs)
s.initialize()
s.start(True)

s.waitCacheChange(5000)
print s.getIdentifiers()


#for channel in s.children:
 #   add_device(channel, True)


#pid = s.getPidReader()

bscan(s, 2, preserve = True)

    

    