Самый простой способ изменить текущий рабочий каталог на python - использовать пакет «os». Ниже приведен пример для компьютера Windows:
#import the os package
import os
# Confirm the current working directory
os.getcwd()
# use '\\' while chaning the directory
os.chdir("C:\\user\\foldername")
Вы можете добавить public_id к запросу- https://cloudinary.com/documentation/upload_images#public_id_the_image_identifier