Added first version of extracthistos.py