@staticmethod
def __ensure_int_values(*values):
    """Casts values to int.

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

        :param values: arbitrary number of values that can be cast to int
        :return: single value or list of values, depending on number of ``values`` passed
        """
    res = []
    for val in values:
        res.append(int(val))
    return res[0] if len(res) == 1 else res
