code: def log_vars(self, message, variables, rem_vars=("self",)):
          
          if self.verbose:
              new_vars = dict(variables)
              for v in rem_vars:
                  del new_vars[v]
              printerr(message, new_vars)
docs: Logs variables with given message if --verbose.