Begin unsquashfs module, port copy operation from Thus.

I don't think this needs to be defined here: you can create a temp dir with `tempfile.mkdtemp()` and delete it at the end (in a `finally` block to make sure it's always removed)