working on varaible period
python interactive takes seconds