how to use temporary file via python

how to use temporary file via python