stream.py: change the order of nested iterations when writing timeseries
This addresses one of the streaming issues addressed, namely:
change the order of nested iterations when writing timeseries so that all classifiers are written to disk for a given segment before moving on to the next segment
It also aligns some of the multi-line comments in stream.timeseries