def strip_prefix(device_name):
 device_name = strip_dev(device_name)
 return (_pref.sub('', device_name) if device_name else device_name)

def strip_prefix ( device_name ) : device_name = strip_dev ( device_name ) return ( _pref . sub ( '' , device_name ) if device_name else device_name )
remove both leading /dev/ and xvd or sd or vd or hd .