<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def new(namespace, name, wdl, synopsis, documentation=None, api_url=fapi.PROD_API_ROOT):
 """Create new FireCloud method. If the namespace + name already exists, a new snapshot is created. Args: namespace (str):
 Method namespace for this method name (str):
 Method name wdl (file):
 WDL description synopsis (str):
 Short description of task documentation (file):
 Extra documentation for method """

        r = fapi.update_workflow(namespace, name, synopsis,
                                 wdl, documentation, api_url)
        fapi._check_response_code(r, 201)
        d = r.json()
        return Method(namespace, name, d["snapshotId"])