title: Multiprocessing never executing function keeps repeating code before function
body: <p>I have a multiprocessing pool , that runs with 1 thread, and it keeps repeating the code before my function, i have tried with different threads, and also, i make things like this quite a bit, so i think i know what is causing the problem but i dont understand why, usually i use argparse to to parse files from the user, but i instead wanted to use input, no errors are thrown so i honestly have no clue.</p>
  
  <pre><code>from colorama import Fore
  import colorama
  import os
  import ctypes
  import multiprocessing
  from multiprocessing import Pool
  import random
  
  
  
  colorama.init(autoreset=False) 
  print("headerhere")
  #as you can see i used input instead of argparse
  g = open(input(Fore.RED + " File Path?: " + Fore.RESET))
  gg = open(input(Fore.RED + "File Path?: " + Fore.RESET))
  #I messed around with this to see if it was the problem, ultimately disabling it until i fixed it, i just use 1 thread 
  threads = int(input(Fore.RED + "Amount of Threads?: " + Fore.RESET))
  
  arrange = [lines.replace("\n", "")for lines in g]
  good = [items.replace("\n", "") for items in gg]
  #this is all of the code before the function that Pool calls
  
  def che(line):
      print("f")
  
      #i would show my code but as i said this isnt the problem since ive made programs like this before, the only thing i changed is how i take file inputs from the user
  def main():
      pool = Pool(1)
      pool.daemon = True
      result = pool.map(che, arrange)
  
  
  if __name__ == "__main__":
      main()
  
  
  
  
  
  
  if __name__ == "__main__":
      main()
  
  </code></pre>