def _serialize_dict(cls, data):
        '''
        serializes a dictionary

        :param data: data to serialize
        '''
        return b64encode(zlib.compress(cPickle.dumps(data, protocol=2))).decode()
serializes a dictionary

        :param data: data to serialize