def __thread_map__(f, iterable, callback): try: callback(map(f, iterable)) except threading.ThreadError: pass