Fixed the write_spin_data() from read().
The file arg must be given, and now as this is set to sys.stdout, STDOUT redirection works again.
Authored by: bugman 2009-10-07
Parent: [r9636]
Child: [r9638]