This is a very simple script that adds pyramid over every selected face. Picture tells more than …
… thousand words.
This is actually rewrite of very first blender script I wrote year ago. Maybe not so useful, but it shows how to iterate through all faces of selected object and how to set location etc. So this could be useful for someone just started to learn Blender scripting.
If you find some use of that script, then why not post your results here