The documentation for setting Session Windows via python SDK is wrong (Section 7.3.3).
It says "time gap of at least 10 minutes" when introducing the example code, but the code actually only sets a duration gap of 10 seconds.
Reason: The duration needs to be passed in seconds, not minutes. So the example code should read something like this:
Took me quite some time to figure this out ...