Python add to file

Prerequisites :