<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getnamespaces(self, search=None, page=1, per_page=20):
 """ Return a namespace list :param search: Optional search query :param page: Which page to return (default is 1) :param per_page: Number of items to return per page (default is 20) :return: returns a list of namespaces, false if there is an error """

        data = {'page': page, 'per_page': per_page}

        if search:
            data['search'] = search

        request = requests.get(
            self.namespaces_url, params=data, headers=self.headers, verify=self.verify_ssl)

        if request.status_code == 200:
            return request.json()
        else:
            return False