'Create the <schematicresponse> XML element.
Uses *kwargs*:
*answer*: The Python script used to evaluate the answer.'

def create_response_element(self, **kwargs):

    answer_script = kwargs.get('answer', None)
    response_element = etree.Element('schematicresponse')
    if answer_script:
        answer_element = etree.SubElement(response_element, 'answer')
        answer_element.set('type', 'loncapa/python')
        answer_element.text = str(answer_script)
    return response_element
