[python] only add modules listed as dependecy to path

For the same reason as #5127, this changes the behavior to only add the modules *explicitly* listed as dependency to the python path.

This should as far as I know not break any existing add-ons that correctly list it's dependencies.