def __json__(self): req = requests.Request(method="GET", url=self.mpd.url, **valid_args(self.args)) req = req.prepare() headers = dict(map(normalize_key, req.headers.items())) return dict(type=type(self).shortname(), url=req.url, headers=headers)