with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:'
I remember gloomily (haven't used windows since ages) that newer Windows versions don't like users to write directly to C:. Have you tried to save the file to your Documents folder?
Regards, Alba -- https://mail.python.org/mailman/listinfo/python-list