Modified open_write_file() to catch and return objects with write methods.
Authored by: bugman 2008-06-28
Parent: [r6509]
Child: [r6511]