human
Complete the below
def group():

    ''''RESTful CRUD controller'
    '''

What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    def prep(r):
        if (r.component_name == 'group_membership'):
            from s3 import IS_ADD_PERSON_WIDGET2, S3AddPersonWidget2, S3SQLCustomForm
            table = s3db.pr_group_membership
            f = table.person_id
            f.requires = IS_ADD_PERSON_WIDGET2()
            f.widget = S3AddPersonWidget2(controller='stdm')
            if auth.s3_has_role('INFORMAL_SETTLMENT'):
                f = table.role_id
                f.readable = f.writable = True
                f.label = T('Household    Relation')
                f.comment = S3PopupLink(c='stdm', f='group_member_role', label=T('Create    Household    Relation'), vars={'child': 'role_id'})
                list_fields = ['person_id', 'role_id']
                crud_form = S3SQLCustomForm('person_id', 'role_id')
            else:
                list_fields = ['person_id']
                crud_form = S3SQLCustomForm('person_id')
            s3db.configure('pr_group_membership', crud_form=crud_form, list_fields=list_fields)
        return True
    s3.prep = prep
    return s3_rest_controller('pr', resourcename, rheader=s3db.stdm_rheader)