Comment ajouter des caractères illégaux aux chemins Python

invalid = '<>:"/\|?* '

for char in invalid:
	filename = filename.replace(char, '')
	
print filename
Obnoxious Oryx