Trying to get cookbook scripts passing. Split cblib in two to avoid importing pylab in scripts which don't otheriwse need it.