As far as I know, you run this on the Jupyter Notebook which is a hosted service online that you use (not a program on your desktop). There are some samples you can download on the ArcGIS API for Python site here:
index | ArcGIS for Developers
(though, I did not see a sample for batch renaming in the sample zip file).