savetxt with file like objects

savetxt now accepts any object with method "write", which is the only method needed.