Fix mistakes and add writer infomation in python script