python cbr system