Python Inserting Variable Interval Aba