.py is the extension used by python files. All scripts have this extension by default. However, just because something ends in .py does not mean that it is a script which you can use to actively change your wiki's content. Again, it just means that it is a file that can be read by python.

Some of the things other than scripts which use this extension include family files, configuration files, and the user-fixes file.