In babynames.py and babyparser.py import instead of from .. import. Explicitly list module name before class name.