Fix wscript files to work with Python 3.X

The current wscript-files don't work with Python 3.X. This commit fixes the errors but uses UTF-8 hardcoded. Maybe someone with better knowledge of Python than me can correctly fix this.