Add generate_deps helper script

Adds the script described in #27