added connection to PYEvent