Sparklines.js Port to Python