treeprng.py: copy whole self, not just hash