def _convert_args(args):
 converted = []
 for arg in args:
  if isinstance(arg, dict):
   for key in list(arg.keys()):
    if (key == '__kwarg__'):
     continue
    converted.append('{0}={1}'.format(key, arg[key]))
  else:
   converted.append(arg)
 return converted

def _convert_args ( args ) : converted = [ ] for arg in args : if isinstance ( arg , dict ) : for key in list ( arg . keys ( ) ) : if ( key == '__kwarg__' ) : continue converted . append ( '{0}={1}' . format ( key , arg [ key ] ) ) else : converted . append ( arg ) return converted
convert args to bytestrings for python 2 and convert them to strings on python 3 .