'Get direct children of this object.'

def get_children(self, sorted=True):

    keys = self.children.keys()
    if sorted:
        keys.sort()
    results = []
    for k in keys:
        results.append(self.children[k])
    return results
