Angular Loop Through Array Python Question