Timeout

This is probably not the best way to handle this.

We were experiencing `iopub.read_message()` hanging intermittently, so I had to give this section a timeout.
self is undefined. This is a function, not a method.