def deepcopy(original_obj):
if isinstance(original_obj, list):<EOL><INDENT>return list(deepcopy(item) for item in original_obj)<EOL><DEDENT>elif isinstance(original_obj, dict):<EOL><INDENT>return dict((key, deepcopy(val)) for key, val in list(original_obj.items()))<EOL><DEDENT>else:<EOL><INDENT>return original_obj<EOL><DEDENT>
Creates a deep copy of an object with no crossed referenced lists or dicts,
useful when loading from yaml as anchors generate those cross-referenced
dicts and lists

Args:
    original_obj(object): Object to deep copy

Return:
    object: deep copy of the object