Creating a layers list for a stream (via Python)

This sounds stupid, but try adding an empty space at the end of the topology string for each layer. I suspect/smell some bad string splitting on the client side… (off the top of my head, can debug around lunchtime)