How To Update An Array In Python