kill python worker after timeout