Fix some doc errors in fits.py.  Also add new writeFile function to write an hdu_list.
(#417)
Fix wrong 'if hdu_list' and similar, since fails for hdu_list = HDUList()
(#417)
Add unit tests for new writeFile functionality.  Also tests the empty HDUList() that used to fail.
(#417)