Clean up get_tempo.py