Import the constant from `self.module`

def value(self):
        """Import the constant from `self.module`"""
        module = __import__(self.module, fromlist=self.module.split('.'))
        if self.name is None:
            return module
        return getattr(module, self.name)