MAINT: use smarter names
MAINT: use variable + mkstemp
MAINT: flake8