Python save to .?

I was wondering, Is it possible to have Python save Character Data into a temp file that only opens with initiation of startup file within the game’s Load Game Scripts?

Alright, so changing the question.
Is it possible to save to a .txt file but replace text with other text, so this way it is harder to change properly, while the script that saved it having the power to decipher the text into usable text the object’s properties can use?

If so, would someone post an example?