Returns a list of objects referenced by import from node

def getImportFromObjects(node):
    '''Returns a list of objects referenced by import from node'''
    somenames = [x.asname for x in node.names if x.asname]
    othernames = [x.name for x in node.names if not x.asname]
    return somenames+othernames