Fix issue with python 3.x on Windows [issue #291]