def translate_wiredict(wd, amount, axis, inplace=False):
    """
    Translates a dictionary wd with points
    xw1, yw1, zw1 and xw2, yw2, zw2 
    a distance 'amount' along the specified axis 'x', 'y', or 'z'
    """
    if not inplace:
        wd = wd.copy()

    if axis == 'x':
        wd['xw1'] += amount
        wd['xw2'] += amount
    elif axis == 'y':
        wd['yw1'] += amount
        wd['yw2'] += amount
    elif axis == 'z':
        wd['zw1'] += amount
        wd['zw2'] += amount

    return wd