Hi @George Davis ,
Thanks for reaching out to Q&A forum.
It appears that the handler.py script is performing write/zip operations on the temp directory. Azure functions being a sandboxed environment, prevents using other directories and its access might be restricted. I would suggest you to use the /home/site/wwwroot directory as this is a small capacity persistent storage which customers have full access.
File system restrictions : https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#file-system-restrictionsconsiderations
Feel free to reach out to me if you have any questions or concerns