Fix Python2 issue with unused charts.

Issue #200.