adding python into file