python: Better diagnostics for coroutines.