Removing tmp module - moving to os.tmpdir() instead