Much improved web error handling, continuing python3 cleanup