Python Replace Substring By Stringer