I think it is best to import this from where it really is: matplotlib.cbook