Python Sampling Profile tool