added clearempty.py by KV
cleanup
cleanup
naming
indentation
rewrote a lot
corrected bugs regarding empty lists
cleanup
don't bother checking for @, property:type=snapshot instead; handle exception on missing @
determine snapshot from property:type=snapshot
corrected indefinite retention of intervals with max count of 0