<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_left_hand_side(target):
 """Extract the left hand side variable from a target. Removes list indexes, stars and other left hand side elements. """

    left_hand_side = _get_names(target, '')

    left_hand_side.replace('*', '')
    if '[' in left_hand_side:
        index = left_hand_side.index('[')
        left_hand_side = target[:index]

    return left_hand_side