the os module gives tools to deal with paths in os.path. Like os.path.split and such. That is better than relying on the number of characters in a str.

Where do you plan to store the default index.html file? Maybe there should be a static directory? Like pydy-viz/pydy-viz/static