Python Replace Substring In Array