def _clean_str(s):
    """
    Filter string to allow only alphanumeric chars and spaces
    @param s: string
    @return: string
    """
return ''.join([c for c in s if c.isalnum() or c in {' '}])

def _get_dev_string_info(device):
    pass
Обнаружение USB-накопителя Python