def wrap_fragment(fragment, new_content):
 wrapper_frag = Fragment(content=new_content)
 wrapper_frag.add_frag_resources(fragment)
 return wrapper_frag

def wrap_fragment ( fragment , new_content ) : wrapper_frag = Fragment ( content = new_content ) wrapper_frag . add_frag_resources ( fragment ) return wrapper_frag
returns a new fragment that has new_content and all as its content .