This is a soft fix that gives pretty realistic results. The actual speed is derived from this formula.
Fist you need to manually change your weight inside bmath/mathbike.py.
then launch the script from the comand line
python main.py path_to_incorrect_file.tcx
The output file will be create in the same folder of the input file under the name "file_fixed.tcx"