replace with ```module_data = xblock_item.get_explicitly_set_fields_by_scope(Scope.content)``` which will give back a dict of field, value pairs for non-inherited locally set content fields.