srd: add python exception catcher, which routes to srd_err() and srd_dbg()