<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def lease(self, ttl=DEFAULT_TIMEOUT):
 """Create a Lease object given a timeout :param ttl: timeout :return: Lease object """

        result = self.post(self.get_url("/lease/grant"),
                           json={"TTL": ttl, "ID": 0})
        return Lease(int(result['ID']), client=self)