Python script to create polynomial curves for performance data