[python] Replace all non-alphanumeric characters in a string