I am not too familiar with python .egg files, but why is it checking the parent directory of the package instead of the package path itself? Wouldn't this make us include all .egg-*files* that are top level packages since they will still be in a directory?