Using temporary files doesn't cause errors on jenkins

Removed unneeded imports.  Also, can't set the name of a tempfile