Not really, unless you prefer to have them in predictions.py too. I put the first one there because it was called from more than one module and the second one because is a typical auxiliary log function, but you might as well have them in predictions.py. As you please.