notebook converted to python script