Unable to update chart studio plot

Hi all!
I have a plotly GO scatter plot with two drop down buttons and a few traces and everything works perfectly fine until I try to post it to my chart studio account. I am currently using the most up to date versions of plotly and chart_studio and it didn’t help. here is a summary of my code:

import plotly.graph_objects as go
import chart_studio.plotly as py
fig = go.Figure(go.Scatter(x=returns[i].date,
                                             y=returns[i].value,
                                             name=name,
                                             visible=visible,      
                                             line=dict(color="#ff7200")))
fig.update_xaxes(title=None, fixedrange=True)
fig.update_yaxes(title="Value ($)", fixedrange=True)
py.plot(fig.data, filename='filename', auto_open=False)

when I run the code first time everything works and my chart gets uploaded to chart studio, but if I run it again trying to update the chart I get the following error:

chart_studio.exceptions.PlotlyRequestError: Sorry, a file named 'for filename' already exists

can anyone help me get through this error? my extensive googling of this error didn’t return any useful solution.