def loadMachines(f):
    """
    Load list of machines from a file
    Return: list of hostnames of machines
    """
    machines = []
    with open(f) as fMachines:
        machines = list(filter(lambda x: len(x) > 0, map(lambda l: l.rstrip('\n').rstrip('\r'), fMachines.readlines())))
    return machines