Python Inserting Variable Interval Example Statistics