title: No module named “code.X”; code is not a package, Python
body: <p>I have the following project structure:</p>
  
  <pre><code>Project
  |
  ---code
  |  |
  |  ---__init__.py
  |  ---X.py
  |  ---Y.py
  |  ---Z.py
  |
  ----resources
      |
      ---__init__.py
      ---csv/
           |
           --- file1.csv
           --- file2.csv
           ---__init__.py 
  </code></pre>
  
  <p>Inside X.py and Y.py I have an import <code>from code.Z import Z</code> (where Z is the name of the class inside, and also a filename. When I want to run Z.py, it gives: `ModuleNotFoundError: No module named 'code.Z'; 'code' is not a package.</p>
  
  <p>What's wrong? </p>