Js Add Attribute To Array In Python