'returns an array containing the loads on each host in cluster'

def get_loads(self):

    loads = []
    for h in self.hosts:
        load_avg = h['load_avg']
        try:
            if (load_avg == '-'):
                load_avg = 0
            elif (load_avg[(-1)] == 'K'):
                load_avg = (float(load_avg[:(-1)]) * 1000)
        except TypeError:
            pass
        loads.append(load_avg)
    return loads
