Fix regressions in setup.py
Import Namespace from monty