fix for win platform & py3