You need to have _init_.py files within those
directories to make python treat then as a package instead of plain
Refer to this
discussion to learn more about init.py files.
Note:I have edited my previous answer by removing the irrelevant content
based on the discussion with the poster of the query.