React Setstate Array Update Python