Add python script to generate analytics

caution: python 3.4+ needed