python interface for xcharts