Angular Append Array Python Definition Function