Add write&check using python