Replace Element In Array Python Initialize Class