code: def _get_auth(username, password):
      '''
      Returns the HTTP auth header
      '''
      if username and password:
          return requests.auth.HTTPBasicAuth(username, password)
      else:
          return Nonf _get_auth(username, password):
      '''
      Returns the HTTP auth header
      '''
      if username and password:
          return requests.auth.HTTPBasicAuth(username, password)
      else:
          return None
docs: Returns the HTTP auth header