fix syntax errors in fetchtelemetry.py