Fixed a bug in the logger thread (the directories were not created)
Changed the Python scripts for plotting