I don't quite understand why this is happening but mutmut will replace this effectful function with 'None' and cause the loop to loop forever.