Replace Function In String Python