def removePrefixFromDictionary(dictionary, prefix):
 for key in dictionary.keys():
  if key.startswith(prefix):
   del dictionary[key]

def removePrefixFromDictionary ( dictionary , prefix ) : for key in dictionary . keys ( ) : if key . startswith ( prefix ) : del dictionary [ key ]
remove the attributes starting with the prefix from the dictionary .