Before returning service available, make sure port is connectable

30s is the default TCP timeout.

Instead of repeating this consider something like
```
def wait_for(callable, timeout=30):
   for ...

Where you pass callable as something like lambda: port_open(badger, stoat) == 0