Minimal ping in python