Python Write To File One Liner