tripeaks.py tuning

still a lot of room for improvement