<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ok_kwarg(val):
 """Helper method for screening keyword arguments"""


        import keyword

        try:
            return str.isidentifier(val) and not keyword.iskeyword(val)
        except TypeError:
            # Non-string values are never a valid keyword arg
            return False