Floris, you are correct. Those are the 2 issues.

As for the issue number 1 I was thinking that this could be solved in the pylib library.

As for the solution I don’t know if the imports should be parsed out from the fullsource attribute as that might be slow. If that’s the solution I could create a pull-request.

Regards,
Gustavo