def closest_interval(dict_keys, value_to_fit):
    """Find closest interval to provided value in transcription"""
    return dict_keys[min(range(len(dict_keys)),
                         key=lambda i: abs(dict_keys[i][1] - value_to_fit) + abs(dict_keys[i][0] - value_to_fit))]