We found a few things wrong with your code. The first one is shown below, and the rest can be found in full_results.txt in the dropdown in the top left:
We tested your code with hand = "07". We expected next_move to return the str "Stay". However, it returned the str "Bust".
You did the tough part: But change your last lines as follows,
if ace_drawn and total >= 11:
total -= 10
if total < ace_min: return "Hit" if total >= ace_min and total <= goal: return "Stay" else: if total > goal: return "Bust"