use timeout

s.settimeout(0.1)