added local_measures script by Ale
main.py