WebStats: Add Python 3 compatibility (again; still not tested).