fixed library, made timeouts in py script uniform