python: Catch some previously uncaught errors in rplex handler.