Replace Numpy Array Elements And Subscripts In Chemistry