Here's a way simpler solution if anyone is still looking for one:
time = 0.6 # this is in minutes per the OP
hours = time / 60 # converts the minutes to hours
minutes = hours * 60 % 60
seconds = minutes * 60 % 60
result = "%02d:%02d:%02d" % (hours, minutes, seconds)