so iv been trying to make a script in python for selenium I have it working but there is a function where it hits a certain result so the script need to restart but I cant get t