Install PyWig using pip:
$ pip install pywig
You can easily import the package by adding this code to the top of your py file:
from pywig import webpage