Script to monitor mining conditions?

I’m working on a Perl script to print the following to command line and log file every 15 seconds. Is there something else available that people have been using for bitcoin in perl or python that I can use?

absolute time
zcashd instance minutes
zcashd instance sum of cores active minutes
%CPU, %RAM, RAM/core
difficulty=D
time-weighted Avg D
Block number
network Block increase since zcashd instance
network Block increase / 10 minutes
Blocks / avg D / 10min