old_contents: import os
  import logging
  import warnings
  import urllib3
  from sqlalchemy.exc import SAWarning
  
  # shut up useless SA warning:
  warnings.filterwarnings('ignore',
                          'Unicode type received non-unicode bind param value.')
  
  warnings.filterwarnings('ignore', category=SAWarning)
  
  # using SSL w/o certificate validation
  urllib3.disable_warnings()
  
  # loggers.
  logging.basicConfig(level=logging.DEBUG)
  
  # specific loggers
  logging.getLogger('requests').setLevel(logging.WARNING)
  logging.getLogger('urllib3').setLevel(logging.WARNING)
  logging.getLogger('pyelasticsearch').setLevel(logging.WARNING)
  logging.getLogger('elasticsearch').setLevel(logging.WARNING)
  logging.getLogger('boto3').setLevel(logging.WARNING)
  logging.getLogger('boto').setLevel(logging.WARNING)
  logging.getLogger('botocore').setLevel(logging.WARNING)
  logging.getLogger('amqp').setLevel(logging.INFO)
  logging.getLogger('assets.cssutils').setLevel(logging.ERROR)
  logging.getLogger('cssutils').setLevel(logging.ERROR)
  logging.getLogger('polyglot').setLevel(logging.WARNING)
  
  logging.getLogger('extractors').setLevel(logging.DEBUG)
  
  # Log all SQL statements:
  # logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
  
  # default locale settings
  os.environ['LC_ALL'] = 'en_US'
  os.environ['LC_LANG'] = 'en_US'
  os.environ['LC_CTYPE'] = 'en_US'
  os.environ['LANG'] = 'en_US'
  
new_contents: import os
  import logging
  import warnings
  import requests
  import urllib3
  from sqlalchemy.exc import SAWarning
  
  # shut up useless SA warning:
  warnings.filterwarnings('ignore',
                          'Unicode type received non-unicode bind param value.')
  
  warnings.filterwarnings('ignore', category=SAWarning)
  
  # using SSL w/o certificate validation
  urllib3.disable_warnings()
  requests.packages.urllib3.disable_warnings()
  
  # loggers.
  logging.basicConfig(level=logging.DEBUG)
  
  # specific loggers
  logging.getLogger('requests').setLevel(logging.WARNING)
  logging.getLogger('urllib3').setLevel(logging.WARNING)
  logging.getLogger('pyelasticsearch').setLevel(logging.WARNING)
  logging.getLogger('elasticsearch').setLevel(logging.WARNING)
  logging.getLogger('boto3').setLevel(logging.WARNING)
  logging.getLogger('boto').setLevel(logging.WARNING)
  logging.getLogger('botocore').setLevel(logging.WARNING)
  logging.getLogger('amqp').setLevel(logging.INFO)
  logging.getLogger('assets.cssutils').setLevel(logging.ERROR)
  logging.getLogger('cssutils').setLevel(logging.ERROR)
  logging.getLogger('polyglot').setLevel(logging.WARNING)
  
  logging.getLogger('extractors').setLevel(logging.DEBUG)
  
  # Log all SQL statements:
  # logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
  
  # default locale settings
  os.environ['LC_ALL'] = 'en_US'
  os.environ['LC_LANG'] = 'en_US'
  os.environ['LC_CTYPE'] = 'en_US'
  os.environ['LANG'] = 'en_US'
  
subject: Disable requests fuss