Bugfix for py2exe

Thanks to ntt