I have created a python worker with the code below. It seems to work fine in local tests, but I am unsure whether the infinite loop structure is appropriate for executing a