added analysis.py template for theta

* first working version of the script to run theta
* some systematics to be updated