repr_attrs, some tiny changes, matplotlib import error