Data transfer with REST Api & Python for the usage in the simulation

If direct connection is not possible for any reason, would it be OK to create an OPC-UA server via python and then connect to that instead? Basically we’re not using native connector anymore:

br,
Lefa