@staticmethod
def __ensure_int_coordinates(*coordinates):
    """Casts point/rectangle coordinates to int.

        This is to ensure Py2 compatibility with scripts that have problems with floor division -> true division on Py3.
        If a single point is passed, returns a single point.  If more than one is passed, returns a list of points.

        :param coordinates: arbitrary number of coordinate pairs (x, y)
        :return: single point or list of points, depending on number of ``coordinates`` passed
        """
    res = []
    for coord in coordinates:
        new_coord = int(coord[0]), int(coord[1])
        res.append(new_coord)
    return res[0] if len(res) == 1 else res
