python lib and cmd tool simply striped out from https://github.com/ganglia/ganglia_contrib.git