For the given code, I would not. I also would not open the same file twice in a loop instead of
. But given the combination of "Here's part of the script" with the tendency for some posted scripts to not correspond to actual code, it seems that piece of information is potentially pertinent as is the tutorial.