sub globals() for dynamically-created NAME_TO_CLASS dict