Added genstat.py