export-stats: Rename script with consistent _ for python filename
Also extract variables from puppet manifest to avoid duplication