Log dialogue app events from Python instead of JS.