separate python file and NBProgress class