pylab & globalbedo stuff