Forced python to loop to keep process alive