data stream algorithms in python