Avoid importing plotly by creating a base figure dictionary.
The dictionary returned by plotly.graph_object.Figure().to_dict()
dict