Use absolute imports from __future__.

Only the files where this makes a difference have been modified.