moving the html handling into a function
adding iptyhon notebook with update analytics