Version 1.3.0
Use mkstemp as per deprecation of tempnam