fix timeouts on python3