Fixed scope of `util` variable

This was causing trouble with the global namespace (especially given that `util` is a common package name).