Only use kwargs for encoded request

Keyword args and kwargs can't be mixed in Python2