Since also tempfile is also part of the stdlib, I'd add it to the same block as sys, shutil etc.