I think there error is in line 36 of the application.py file. Change it from:
In other words remove the quotes.
Code:
tesla_connection = teslajson.Connection("TESLA_USER", "TESLA_PASSWORD")
to:
tesla_connection = teslajson.Connection(TESLA_USER, TESLA_PASSWORD)
In other words remove the quotes.