'Reduce memory usage caused by T/NT classes - use memory only when needed.'

def __getattr__(self, attr):

    if (attr == 'T'):
        self.T = T(self)
        return self.T
    if (attr == 'NT'):
        self.NT = NT(self)
        return self.NT
    raise AttributeError
