MNT : slight refactoring of Gcf

Use classmethods instead of staticmethods to implement the
singleton in `_pylab_helpers.Gcf`.