Automating RealTerm with Python

I am currently in the process of creating a script to automate RealTerm. I need to send a binary file and have the Winsock setting set to "Raw". RealTerms documentation indicates that I need an integer 0 or 1 for this setting but I am receiving a "object has no attribute" "Winsock".

RT.Winsock = 0 is what I currently have it set at. This this is the error message I get. '<win32com.gen_py.Realterm Library.IRealtermIntf instance at 0x1826368502752>' object has no attribute 'Winsock' Could this be a bug in the program?

I have also tried RT.Winsock = ("0") and that returned the same error but that sets it as a string and not integer.

Any thoughts on how it should be set or what I'm doing wrong? Here is my full error below.

Exception has occurred: AttributeError '<win32com.gen_py.Realterm Library.IRealtermIntf instance at 0x2390257155040>' object has no attribute 'Winsock'

During handling of the above exception, another exception occurred:

File "C:\NetworkUpdater\NUP\", line 13, in module RT.Winsock = 0

Edit: Added code below

RT = DispatchEx("Realterm.RealtermIntf")
RT.Visible = True
RT.Caption = "Realterm Controlled from Python"
RT.Winsock = 0
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum