In Python 3 map returns a generator and these cannot currently be passed over the C++ boundary. Refs #27712