I think this coder may have been trying to do manual memory management in python
they do, like:
def get_url(url):
response = request.get(url)
document = json.loads(response)
response=None # <-- this line
return document
like, that almost makes sense in C, right? they're freeing the HTTP response. but this is python, we have a reference-counting garbage collector