improved deps.py script. see issue 542 for details
Merge pull request #580 from zenlucent/improve_deps_script

improved deps.py script. see issue 542 for details