Replace Text In A String Python Definition