I am having problem with the following code.
I have tested the probanetic lines in Python2 Shell. It worked.
I already had to remove things like byte_array.rsplit(), str (byte_array) etc,
because they were returning null.
Now the problem has shifted to the split string. I get null returned.
float(str) does not seem to work as well.