Replace internal usage of ``py.log`` with a custom solution (but with the same interface).