think i finaly fixed the bug, something stupid as always.
nodejs now produces a nice looking calendar, still working on this
however i needed to get my python stuff working properly first.