Fixed python3 compatibility problem with new local scheduler IO.