basic python search api example