How To Replace Characters In A String Python Definition