Removed null_out, not working with check_call, replaced with a compatible file object in the one place where it is used