This is one way to shallow-copy a dict, but I think `state = self.__dict__.copy()` or `state = dict(self.__dict__)` would be preferable. Though (hopefully) you can get rid of this method entirely. Even if something like this is required, it should be implemented on the unpickleable object so that all users can benefit.