The answer is to use absolute imports in the utils.py file as:
from app.data import *
Then to run main2.py, we need to use:
python main2.py
while being inside the app folder.
and to run main.py, we need to use:
python -m app.main
this way we can run both files without conflicts.