[rcharts] Get dynamic sections list

Not a Python developer so only done this from examples. Please advise if it could be done better.