Already using Python 3 style map here, don't need itertools.imap