RS-232 1-Channel High-Power Relay Controller on Ubuntu with Python

I’m having trouble sending commands to this particular relay. I have stumbled upon this library: GitHub - ncd-io/Industrial-Relay-Control
After following the examples I produced the code below:
import serial
import ncd_industrial_relay

if name == ‘main’:
serial_port = serial.Serial(’/dev/ttyS0’, baudrate=9600, bytesize=8, stopbits=1, timeout=.5)
board1 = ncd_industrial_relay.Relay_Controller(serial_port)
print board1.turn_on_relay_by_index(1)

however when run i get the following error messages:
Traceback (most recent call last):
File “”, line 8, in
print board1.turn_on_relay_by_index(1)
File “/home/asdf/”, line 25, in turn_on_relay_by_index
return self.process_control_command_return(self.send_command(command, 4))
File “/home/asdf/”, line 149, in send_command
File “/usr/lib/python2.7/dist-packages/serial/”, line 475, in write
n = os.write(self.fd, d)
TypeError: must be string or buffer, not list

Have I correctly implemented the example? Is this the correct library to use? Can someone point me in the direction of an example with python?
below is the specific product I am using

That library is for use with ProXR series devices. You have an R1x/R2x controller which has a different command set. The library will need to be modified to be used with that controller. The command set for your controller can be found here:

Thank you,
Travis Elliott

Do y’all by chance have a python example or just visual basic?