fix tmpname on windows as open it with tempfile directly results in a IOError after that
fix tmpname on windows as open it with tempfile directly results in a IOError after that

hirokihamasaki/irma,quarkslab/irma,hirokihamasaki/irma,quarkslab/irma,hirokihamasaki/irma,hirokihamasaki/irma,quarkslab/irma,quarkslab/irma,hirokihamasaki/irma