Avocado utils work

Some refactors to the avocado.utils namespace. I found them convenient for the work I'm doing.
Agreed, don't need to use a function, for (now) a common Python idiom.