py3: Move compat module out of utils
py3: Use itervalues() for local track database