Replace Element In Array Python Initialize