with open("tempo", 'w') as f:
    for i in range(60, 121):
        h = 60.0/i
        h = (h/4.0)*100000000        
        f.write("X\"" + str(hex(int(h))) + "\" when tempo = \"" + str(bin(i)) + "\" else\n")


72c09fa1d486012c8e4484c6e2b2eed37d0e279e
<mask token>

with open('tempo', 'w') as f:
    for i in range(60, 121):
        h = 60.0 / i
        h = h / 4.0 * 100000000
        f.write('X"' + str(hex(int(h))) + '" when tempo = "' + str(bin(i)) +
            '" else\n')

with open("tempo", 'w') as f:
    for i in range(60, 121):
        h = 60.0/i
        h = (h/4.0)*100000000        
        f.write("X\"" + str(hex(int(h))) + "\" when tempo = \"" + str(bin(i)) + "\" else\n")

