Bug Correction in the .write method

	unit variable was redefined sometimes
	make sure the new pyfits can still use IOStrings

	(minor update: pep8 compliant)