Wrap map() calls in list() to preserve Python 2 semantics

Closes gh-53