def sanitizeSceneName(name, ezrss=False):
 if (not ezrss):
  bad_chars = u",:()'!?\u2019"
 else:
  bad_chars = u",()'?\u2019"
 for x in bad_chars:
  name = name.replace(x, '')
 name = name.replace('- ', '.').replace(' ', '.').replace('&', 'and').replace('/', '.')
 name = re.sub('\\.\\.*', '.', name)
 if name.endswith('.'):
  name = name[:(-1)]
 return name

def sanitizeSceneName ( name , ezrss = False ) : if ( not ezrss ) : bad_chars = u",:()'!?\u2019" else : bad_chars = u",()'?\u2019" for x in bad_chars : name = name . replace ( x , '' ) name = name . replace ( '- ' , '.' ) . replace ( ' ' , '.' ) . replace ( '&' , 'and' ) . replace ( '/' , '.' ) name = re . sub ( '\\.\\.*' , '.' , name ) if name . endswith ( '.' ) : name = name [ : ( - 1 ) ] return name
takes a show name and returns the "scenified" version of it .