some refactoring on dependency.py
some refactoring on dependency.py

--HG--
extra : convert_revision : eduardo%40eduardo-laptop-20100809161149-mt4iztcrvjwcv9gs

okin/doit,swayf/doit,swayf/doit,okin/doit,swayf/doit,okin/doit