Sample python application code