s4:param add log_level function to retrieve log level in Python code