Fix the loader API a bit; add top-level standard funcs.
Use dict.items() to make this thing py3 safe.