Removed the time.sleep, now it is constantly reading the buffer to keep it clean and only processes the data once every 5 minutes. The RRD Grapher is set to only graph week, month and year graphs once every 30m.