React Setstate Array Update Python Command Prompt