[python] add *all* module dependencies to path

Fixes an issue with #5201: dependencies of dependencies are not added to the path. For instance if addon A depends on module B, and module B depends on module C, C would not be added to path when invoking A. Pay attention people!;)
Should this be limited to only script? Can't technically a dependency be anything, say a skin or whatever stupid, and should load those dependencies too?