python script interrupt