more makecube diagnostic stuff - fix pylab stuff