Backport fixes to as_completed and map iterators (bpo-27144) (#66)

Python issues:

+ python/cpython#1560
+ python/cpython#3270
+ python/cpython#3830
1 file changed