[Python-ideas] execute function on iterator items without changing or consuming iterator