Create calculate_put.py

calculate performance from .tr traces