python interactive takes seconds