Initial python version. Skeleton is working. TODO implement analytics.py