Decorator for populating a Python module's __all__
Description
This is a very simple decorator and function which populates a
module's __all__ and optionally the module globals.
This provides both a pure-Python implementation and a C implementation.
It is proposed that the C implementation be added to built-ins for
Python 3.6.