def cond_pu(cond, kv, length):
    """
    Get per unit data for conductor
    Args:
        cond: conductor dictionary
        kv: line voltage
        lenght: length of line in miles
    Returns: conductor dictionary
    """
    kv = float(kv)
    amps_to_mva = 3.0**0.5 * kv / 1000.0
    Zbase = kv**2/100.0
    Ybase = 1.0/Zbase
    cond['sn_mva'] = round(cond['sn_amps'] * amps_to_mva)
    cond['se_mva'] = round(cond['se_amps'] * amps_to_mva)
    cond['Rpu'] = cond['R_ohms'] * length / Zbase
    cond['Xpu'] = cond['X_ohms'] * length / Zbase
    cond['Bpu'] = cond['B_mhos'] * length / Ybase

    cond['R0pu'] = cond['R0_ohms'] * length / Zbase
    cond['X0pu'] = cond['X0_ohms'] * length / Zbase
    cond['B0pu'] = cond['B0_mhos'] * length / Ybase
    return cond