The trick here is to also generate dependencies properly.
In the end we need to have two ways to use this package :
- explicit
rosimport.import_messages() that work similarly to libimport.import_module and does the same thing as the import python keyword.
- explicit activation of importer hooks, and then they work without user noticing. (already implemented)