from xml.dom import minidom


def prettify(elem):
    """prettify

    Args:
        elem (Element): Element to be prettified

    Returns:
        str: prettified xml element
    """

    x = minidom.parseString(elem)
    # pretty = '\n'.join(x.toprettyxml().splitlines()[1:])
    return x.toprettyxml()