How to call sessionFromVersionIDs from python?

This package is a minimal example of how to use sendEvent: