def find_obs(obs, states_list):

    """
    linear search of a state within a states list
    N.B: It is an example to serve tests, it is not optimal for large list !

    """
    for i in range(len(states_list)):
        if (obs == states_list[i][0]).all():
            return i
    return -1