More python3 fixes
Remove tempfile