I have a django project with this kind of architecture :
def without_app(item): # http://docs.python.org/release/2.2.1/lib/string-methods.html return not bool(item.find('app_name') + 1) # help(filter) - use in command line to read the docstring packages = filter(without_app, find_packages())