def fixcommand(c):
 forbidden_characters = ['-']
 c = c.lower()
 for char in forbidden_characters:
  c = c.replace(char, '')
 if (c == 'def'):
  return 'qdef'
 return c

def fixcommand ( c ) : forbidden_characters = [ '-' ] c = c . lower ( ) for char in forbidden_characters : c = c . replace ( char , '' ) if ( c == 'def' ) : return 'qdef' return c
fix qasm command names .