title: Compressing a file in python and keep the grammar exact when opening it again
body: <p>I'm trying to find some code for my course work and I can't for the life of me find any. I need a piece of code that I can use that will compress a text file in Python, and then can be opened again while keeping all of the grammar in the exact same place? Any help would be great. Thanks :)</p>