pySerial write() won't take my string
It turns out that the string needed to be turned into a bytearray and to do this I editted the code to
ser.write("%01#RDD0010000107**\r".encode())
This solved the problem
You have found the root cause. Alternately do like this:
ser.write(bytes(b'your_commands'))