'protocol as defined in pickle / pickle
Defaults to the highest protocol available
For maximum compatibility use protocol = 0'

def __init__(self, basename, protocol=pickle.HIGHEST_PROTOCOL):

    self.name = basename
    self.protocol = protocol
