added gethist.py