If you are using any type of Unix (you are), then the answer may be yes. (But see last paragraph.)
Files are not deleted when you remove the directory entry. They are only deleted when there are zero directory entries, and zero processes with the file open.
So how to access it.
On Gnu/Linux systems there is a proc
directory. This directory has a sub-directory for each process.
- Get the process ID of the desired process.
cd /proc/«process-id»/fd
ls -l
- play guess the file, it will be one of these (usually not many).
This will only work if Python keeps the file open. (I just tested. It works for Bash, but I can't get this to work for Python. It looks like Python closes the file.)