Script for extracting node data from puppetdb