if (len(filter_on)>0): timestamps_to_pull_tmp = sorted([value for kind, path, value in data if kind == 'logos']) else: timestamps_to_pull_tmp = timestamps_to_pull