update analyse_webstats.py based on tutorial sample