MNT : slight refactoring of Gcf

Use classmethods instead of staticmethods to implement the
singleton in `_pylab_helpers.Gcf`.
Merge pull request #3638 from tacaswell/gcf_refactor

MNT : slight refactoring of Gcf