def which(boolean_list):
    """ Mimics the R function 'which()' and it returns the indics of the
    boolean list that are labeled True """
    return [i for i in range(0, len(boolean_list)) if boolean_list[i]]