> I'm having a problem with deep copy here. What happens is that the object
> is not created properly after it is done. The only way to get it to work
> with proper behavior is to redefine KIT.__dict__ = KIT. This does not seem
> like a good way to handle this. Any suggestions?

deepcopy of Bunch is indeed not safe. I have had the problem before. I
don't want to have
a more complex Bunch just to fix this.

I think:

a = Bunch()
a_copy = mne.fiff.constants.Bunch(**a)

should do the trick. If it does we could had a copy method in Bunch
that does this.