ProjectWise Python module cannot find datasources

I am creating a Python module, which encapsulates ProjectWise features.

The module is written in C++ and wrapped with swig.

I can import the module and launch the ProjectWise login dialog. But the dialog does not list any datasource, and even if I enter the full path (servername:datasourcename), the login fails and gives me the following error:

- Last Error [10093] Cannot login to the datasource

What do I do wrong in my problem ? Is it possible, if at all, to create a ProjectWise module for Python ?