Fix "labels" confusion in get_labels_between

There was both the labels module and a list called labels. Rename the
local variable to foundlabels instead.