Use local imports for py3 compat.