Worker.py: Autodetect free ports