The Node Data.ExportExcel is a Dynamo Node, you can’t use those nodes in a Python Script because they are written in another language/ they are not stand-alone functions.
I think it would be possible to create something similar through Python but you would have to access/ learn the Excel API to do this.