Oracle Loop Through Array Python Question