Replace Element In String Python Definition