I am getting this error when running any command SyntaxWarning: invalid escape sequence '\d' grnd_ht = float(re.findall("\d+\.\d+",line)[0]) Possibly has something to do with this? https://stackoverflow.com/questions/52335970/how-to-fix-syntaxwarning-invalid-escape-sequence-in-python