'This method allows callers to access CourseTab members with the d[key] syntax as is done with
Python dictionary objects.'

def __getitem__(self, key):

    if hasattr(self, key):
        return getattr(self, key, None)
    else:
        raise KeyError('Key    {0}    not    present    in    tab    {1}'.format(key, self.to_json()))
