def arglist_to_dict(arglist):
 return dict((x.split('=', 1) for x in arglist))

def arglist_to_dict ( arglist ) : return dict ( ( x . split ( '=' , 1 ) for x in arglist ) )
convert a list of arguments like [arg1=val1 .