Use close_fds=True to avoid deadlock on Python 2.6