Hello,
Attached is the python script for wssa. The parameters of the simulation, such as the number of runs are indicated by comments. For a simulation using different IS weights, you can define a list of those weights and assign them to updated_k in line 33.
Dependencies are numpy and matplotlib.
Let me know if you have any questions.
Mohammad