Session 04 homework and labs

careful here -- this will open in text mode -- for a generaic file copier, you'd want to use binary mode: open(outfile, 'wb')
(also for reading).