Fix compatibility of wscript with python3