There's a problem here, which is that exceptions don't propagate out of `with gil` blocks. Instead, at the end of the block, the exception is caught, written to stderr and the program continues executing.