Why is the Google Drive API not allowing to rename and properly place a files sent by Python script?

The /tmp directory is stored on the virtual machine that runs your workflow, and files placed in /tmp may not persist across workflow executions. Execution environments (EEs) that handle your workflows can be destroyed after about 10 minutes of receiving no events, which means files in /tmp could be wiped at any time. While files may remain between executions, you should not expect to have access to them across different runs of your workflow. It’s recommended to clean up files after use to ensure they don’t affect your workflow. For more details, please refer to the documentation on managing /tmp across workflow runs.