Fix tests for Python3.

`imap/map` behaves differently in Python 2 and 3 when `None` is given as
the callable (first input).  Python 3 raises a TypeError, which is preferred.

`pip --use-mirrors` is deprecated.  Removed.