Oracle Loop Through Array Python Definition