I don't think it was correct to modify the self.default_options['format'], it could cause race conditions in a multi-threaded environment.  So I changed that.