[Python] Improve Plotly graphic package handler

1 job for master in 18 minutes and 59 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #55122
linux kf5-qt5 qt5.12

00:18:59

15.0%