def index_startswith_substring(the_list, substring):
    """What is this? What is it used for?"""
    for i, s in enumerate(the_list):
        if s.startswith(substring):
            return i
    return -1
