Dunno about Python, but Perl has a library to do all disk writes in a separate (p)thread, so your main control thread never blocks on IO.  (This is in addition to the usual event-loop tricks; I <i>know</i> Python can do nonblocking IO that way.)