add an AttributeError on logging.root.handlers.clear(), then changed to del logging.root.handlers[:] for that python2.7's list has no `clear`