def get_tempo(artist, title):
 results = song.search(artist=artist, title=title, results=1, buckets=['audio_summary'])
 if (len(results) > 0):
  return results[0].audio_summary['tempo']
 else:
  return None

def get_tempo ( artist , title ) : results = song . search ( artist = artist , title = title , results = 1 , buckets = [ 'audio_summary' ] ) if ( len ( results ) > 0 ) : return results [ 0 ] . audio_summary [ 'tempo' ] else : return None
gets the tempo for a song .