Rewrote Python embedding to handle return codes.
Added exception logger for IBActions.