def safe_name(name):
 return re.sub('[^A-Za-z0-9.]+', '-', name)

def safe_name ( name ) : return re . sub ( '[^A-Za-z0-9.]+' , '-' , name )
convert an arbitrary string to a standard distribution name any runs of non-alphanumeric/ .