Use Python 2.4 compatible file write