fixing phantomjs usage on windows for python

Fixes Isssue #6736