(block, stmt, other)
Inserts given statement before another statement in the given block
Inserts given statement before another statement in the given block
Inserts given statement before another statement in the given block
def insert_before(block, stmt, other):
    """
    Inserts given statement before another statement in the given block
    """

    index = block.body.index(other)
    block.body.insert(index, stmt)
def insert_before ( block , stmt , other ) : index = block . body . index ( other ) block . body . insert ( index , stmt )