<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def previous_layout(pymux, variables):
    " Select previous layout. "
    pane = pymux.arrangement.get_active_window()
    if pane:
        pane.select_previous_layout()