Use the existing edit_component method (world.edit_component() defined in /edx-platform/cms/djangoapps/contentstore/features/component_settings_editor_helpers.py).