I was using a QRunnable class to start a separate thread from my gui ( for non-blocking functionality). This thread was using Matplotlib to save some plots as pdfs. However it i