substitute the result for value under the 'microsecond' key of the kw dictionary. update a dictionary with an entry v converted to an integer for k, for every k and v in result of the function six.iteritems,
kw = dict ( ( k , int ( v ) ) for k , v in six . iteritems ( kw ) if v is not None )