30 sec. timeout prevents hanging.
Python 3 compatibility.

In python3, map returns a generator.