<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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