converting python lists to js arrays and python dicts to js objects
removing log file