Backport of the concurrent.futures package from Python 3.2
