<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_closest_points(self, max_distance=None, origin_index=0, origin_raw=None):
 """ Get closest points to a given origin. Returns a list of 2 element tuples where first element is the destination and the second is the distance. """

        if not self.dict_response['distance']['value']:
            self.get_distance_values()

        if origin_raw:
            origin = copy.deepcopy(self.dict_response['distance']['value'][origin_raw])
        else:
            origin = copy.deepcopy(self.dict_response['distance']['value'][self.origins[origin_index]])

        tmp_origin = copy.deepcopy(origin)
        if max_distance is not None:
            for k, v in tmp_origin.iteritems():
                if v > max_distance or v == 'ZERO_RESULTS':
                    del(origin[k])

        return origin