Cómo agregar personajes ilegales a Paths Python

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

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