Finds dependencies of configured modules for update.py

Looks up import lines in the configures modules and finds dependencies.
Did not load modules since it seemed as an overkill

Fixes bug #963509

Change-Id: I690cdf6fb149bbe243add3a35b96f6045ebe10f4
Merge "Finds dependencies of configured modules for update.py"