Trying to coerce a poorly-laid out application into a library was a bad idea.
This commit imports the latest source of the pwic module directly and modifies it just enough for it to be an importable module. Source: https://github.com/gitbra/pwic