code: def clean_restricted_chars(path, restricted_chars=restricted_chars):
      '''
      Get path without restricted characters.
  
      :param path: path
      :return: path without restricted characters
      :rtype: str or unicode (depending on given path)
      '''
      for character in restricted_chars:
          path = path.replace(character, '_')
      return patf clean_restricted_chars(path, restricted_chars=restricted_chars):
      '''
      Get path without restricted characters.
  
      :param path: path
      :return: path without restricted characters
      :rtype: str or unicode (depending on given path)
      '''
      for character in restricted_chars:
          path = path.replace(character, '_')
      return path
docs: Get path without restricted characters.
  
      :param path: path
      :return: path without restricted characters
      :rtype: str or unicode (depending on given path)