use correct python exception handling keyword