Scales a keypoint by scale_x and scale_y.

def keypoint_scale(keypoint, scale_x, scale_y, **params):
    """Scales a keypoint by scale_x and scale_y."""
    x, y, a, s = keypoint
    return [x * scale_x, y * scale_y, a, s * max(scale_x, scale_y)]