F/python exception handling