Python Performance Testing