Since you have already tried SoftwareSerial, also try inverting the serial protocol via SoftwareSerial. Sometimes a device uses inverted serial protocol and you don't know it.
So initialize inverted add 1 to the end of the contructor like so :
SoftwareSerial mySerial(RXPIN, TXPIN,1); // RX, TX, inverted
There is not enough context to be certain, but given the variable names I can assume that this is code from a sketch that receives information from an RC controller and is intended to control parts of some form of flying craft.
So with that in mind, let's take this line:
I assume that this is to calculate the amount the ...
Absolutely not. Even if you could run python on the Uno (I think there are some beefier boards, that can run micropython), it wouldn't be capable enough (speed and memory) to lift the heavy duty of a virtual assistent. Speech recognition is way out of it's range. But even for capturing the voice, sending it to a web based speech recognition, processing the ...
At this moment Arduino cannot run python. Python is to resource heavy for a simple ATMega processor. I suggest RaspberyPi, of Onion Omega2. They are compatible with PCs and have a python interpreter on them.