boost python error catching