def _json_as_post(methodname: str, body: dict) -> snug.Request:
    return snug.POST(methodname, json.dumps({k: v for (k, v) in body.items() if (v is not None)}), headers={'Content-Type': 'application/json'})
def _json_as_post(methodname: str, body: dict) -> snug.Request:
    return snug.POST(methodname, json.dumps({k: v for (k, v) in body.items() if (v is not None)}), headers={'Content-Type': 'application/json'})