def _buses_with_gens(gens):
    """
    Return a list of buses with generators
    """
    buses_with_gens = list()
    for gen_name, gen in gens.items():
        if not gen['bus'] in buses_with_gens:
            buses_with_gens.append(gen['bus'])

    return buses_with_gens