Manage block configuration from requests.args (url params)

def _config_from_url(self):
        """ Manage block configuration from requests.args (url params)
        """
        config = {
            "name": self._blk.name,
            "options": {}
        }
        for key, value in six.iteritems(request.args):
            if isinstance(value, list) and len(value) == 1:
                config["options"][key] = value[0]
            else:
                config["options"][key] = value
        return config