Suppress security warning message when running test: use tempfile module instead of os.tmpnam().