The docs here (from 2018) say to click Download app content from the Portal to retrieve a .zip file of your Azure Function.
However, this option is grayed out for my Python function:

The doc goes on to provide an alternative method for retrieving a .zip file using REST API with the following url https://<function_app>.scm.azurewebsites.net/api/zip/site/wwwroot/.
Unfortunately, this downloads a download.zip file containing only the hosts.json file rather than the Function code and associated files.

So, how do I download my Python Function as a .zip file from either Azure Portal, REST API or the scm backend?
EDIT 1: Trying the two proposed solutions so far yield no results either.