This should be a raw string, like this

    css_parsed = re.sub(r'url\(([^)]*?)\)', parse, css_content)

Otherwise, python and re get confused about the back slashes.