new intervaldata.py file