Workaround for PyQt behavior change on unhandled exceptions in python slots/virtual methods