works now, code has to be cleaned
cleaned code and removed pygal importing in AnalogGraphThreads