Create an app through developer platform :
https://<your-account>.app.box.com/developers/console
Then later, get the service account email from the general settings :
AutomationUser_0000000_xxxxxxx@boxdevedition.com
Share the folders with this service account. And run the script as :
mkdir backup
python download.py <folder-id>