Pythonized file writes