I am creating a basic map following the instructions from the ArcGIS API for Python tutorial (see link below).
https://developers.arcgis.com/python/guide/part5-saving-updating-and-embedding-map-widget/
When using the export_to_html method I get a bad escape \u and I cannot export the map. Is there a resolution to this error? It seems to me this error is related to this stack overflow question:
https://stackoverflow.com/questions/54330673/how-to-fix-error-bad-escape-u-at-position-0
Code (replaced API key and file path):
gis = GIS(api_key='my key')
map1 = gis.map('USA')
map1.export_to_html('file path')
Error:

Package Versions:
Python - 3.7.1
ArcGIS - 2.1.0.3