Revert "Move __future__ import to the beginning"

This reverts commit 8b173c5ed259d3521071f28517986e9939c11ff7.
Revert "Import with_statement from __future__ for Python 2.5."

This reverts commit af197cb67cdf26091dbde00cc0ea142b6d591ee0.