Python Array Contains String Python Replace Part