This would require replacing some calls to `file` and rewriting the `print` statements as their functional form.