Consider using utils.wait.wait_for() method here for all new "waiting" that happens outside of selenium