Resolve SyntaxWarnings in pwnutil.util.web

Fixes #217