Use izip instead of zip
Don't make useless copies of lists when needing a static collection
Unpack tuple in snap_groups_to_keyframes for more readable code