https://vuyisile.com/using-tempfile-module/
Using Python's tempfile module