WebStats: Add Python 3 compatibility (not tested).