title: When I run this, it functions as usual but it seems to repeat once. Why does this happen?
body: <p>Whenever I run this I get a "<strong>pycache</strong>" file placed in the same folder as this project - and its only with this project.</p>
  
  <pre class="lang-py prettyprint-override"><code>def list_name():
      from project_name import name_sorter as a
      list1 = []
      name = a()
      if name is False:
          return False
      else:
          list1.append(name)
          return list1[list1.index(name)]
  def name_sorter():
      from project_name import name_digit as def1
      a = input("Full Name: ")
      bool1 = def1(a)
      if bool1 is False:
          return False
      else:
          if a.count(" ") == 1:
              name_first = a.upper()[0] + a.lower()[1:a.find(" ")]
              name_last = a.upper()[a.find(" ")+1] + a.lower()[a.find(" ")+2:]
              return name_first + " " + name_last
          else:
              return False
  def name_digit(a, x = 0):
      if len(a) &lt; 3 or len(a) &gt; 60 or " " not in a:
          return False
      else:
          for b in a:
              x += 1
              if b.isdigit():
                  return False
              elif x == len(a):
                  return True
  from project_name import list_name as list1
  a = list1()
  while a is False:
      print("Invalid")
      a = list1()
  print(a)
  </code></pre>
  
  <p>Also, is it better to have everything in one file or in separate files but in the same folder?</p>