def get_speciesindices(specieslist):
    """
    Create a dictionary to assign an arbitrary index to each of the species in
    the kinetic scheme.

    Parameters
    ----------
    specieslist : list
                  a list of all the species in the model

    Returns
    -------
    speciesindices     : dict
                         a dictionary of arbitrary indices with the species
                         from specieslist as keys
    indices_to_species : dict
                         the reverse of speciesindices (keys are the indices
                         and values are the species)
    """
    speciesindices = {}
    index = 0
    for x in specieslist:
        speciesindices[x] = index
        index += 1
    indices_to_species = dict(zip(speciesindices.values(),
                                  speciesindices.keys()))
    return speciesindices, indices_to_species