New module wst.py, moved some stuff into it and improved it there.