Functions!
More function. pylint cleanup. _findemptyregions with variable ranges