Simple python api example