Added python exception output