def find_name(slaves, name):

    """Function:  find_name

    Description:  Locates and returns a slave's instance from an array of slave
        instances.

    Arguments:
        (input) slaves -> List of slave instances.
        (input) name -> Name of server being searched for.
        (output) Slave instance or None.

    """
    slaves = list(slaves)

    for slv in slaves:
        if name == slv.name:
            return slv

    return None