python: added some decorators from matplotlib