python/appdash: improve scheduling of collector flushes.
python/appdash: improve scheduling of collector flushes.

bg451/appdash,slimsag/appdash,joeshaw/appdash,slimsag/appdash,slimsag/appdash,joeshaw/appdash,joeshaw/appdash,bg451/appdash,bg451/appdash