python sample for pigeon