For this `try`-`except` block you probably only want to `try` opening the the tar file i. e. line 44. Or any particular reason to have all this block of code inside the `try` block?