'Returns a list of just direct dependencies.'

def DirectDependencies(self, dependencies=None):

    if (dependencies == None):
        dependencies = []
    for dependency in self.dependencies:
        if ((dependency.ref != None) and (dependency.ref not in dependencies)):
            dependencies.append(dependency.ref)
    return dependencies
