Will a single call to open() without assigning it to a variable close the file handle after it is done executing?
import json
_keyfile = json.load(open("s3_key.json", "r"))
What about if you call .read() on it?
import json
_keyfile = json.loads(open("s3_key.json", "r").read())