1. There should be a __init__.py file(usually kept empty) in a directory. When a python scripts need to look down into the hierarchical level, the existance of __init__.py file will lead the program…