Complete new python file - with interrupts