String Replace Array Python Definition