[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!;)