remove unnecessary Python imports of exceptions