take some copy.deepcopy away from Generic.py to avoid recursion crashs