initialized py_written