mainly formatting of boltztrap.py