python: linger timeout