Fix some uses of map() in Qt console completion code.
Merge pull request #4508 from takluyver/qtcompletion-map-fixes

Fix some uses of map() in Qt console completion code.

Missed these in the Python 3 single codebase work.