reorients a structure such that the z axis is concurrent with the
    normal to the A-B plane

def reorient_z(structure):
    """
    reorients a structure such that the z axis is concurrent with the
    normal to the A-B plane
    """
    struct = structure.copy()
    sop = get_rot(struct)
    struct.apply_operation(sop)
    return struct