[PATCH] python: add support for lockspace events