python write variable to/file new line