This is expected behavior of Python.
you should use an relative import as you suggested with the fix. Can you elaborate as to why you cannot edit the auto-generated code? I find it odd that it would generate non-functional code. You should also include a __init__.py
file in each module (folder)