[python] Rolling or sliding window iterator?