fix side-effects of find_resolved_modules, stop trying to deepcopy 'unprocessed' in resolve_dependencies (doesn't work in Python 2.4)