start of RRD port from Python