<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_comments(xml):
 """ Remove comments, as they can break the xml parser. See html5lib issue #122 ( http://code.google.com/p/html5lib/issues/detail?id=122 ). '' '' '<p>stuffstuff</p>' """

    regex = re.compile(r'<!--.*?-->', re.DOTALL)
    return regex.sub('', xml)