Avocado utils work

Some refactors to the avocado.utils namespace. I found them convenient for the work I'm doing.