def find_gt(a, x):
    """Find leftmost value(switching this to index) greater than x"""
return bisect_right(a, x)
In Python, how do you find the index of the first value greater than a threshold in a sorted list?