Fix bug with pyro logging by moving de/compression into utils module.