def _clone_attrs(obj):
    """Clone deeply any collection attributes of the passed-in object."""
    attrs = vars(obj).copy()
    ccsteps = attrs.get('_csteps', None)
    if ccsteps:
        attrs['_csteps'] = ccsteps.copy()
    ctags = attrs['_tags']
    if ctags:
        attrs['_tags'] = attrs['_tags'].copy()
    return attrs
