add __deepcopy__ to fix tests