Remove get_tmp_filename

This is the scripts and library code. The test code will  be a separate pull request.