Pass args to Popen as kwargs, and open file in update mode to avoid reopening