Huh, well I found a way to monitor RAM in Python. Memory usage is not spiking up.
I found the problem though! The screenshot code was trying to open all the previous paths (so it wouldn't overwrite any). When I keep track of it via a variable, it works much better, because it doesn't have to try to open several hundred files every time it tries to save. Oh well, user error. Thanks! Ian