python sys stdin read timeout