util.py: Fixes backwards compat with list.