I don't know, but you could write a cython wrapper around libxrdp that contains library functions for the rdp client. However, the library is rarely documented. There is also FreeRDP (which I don't know), but I'm not sure if this is a much better alternative.
source share