import six


def rpad(orig, char, length):
    """
    Pad more character to the right of original string to have enough length.
    If original string length is longer than expected string, there is no change
    :param orig: original string
    :param char: filling character
    :param length: expected length of result string
    :return: Padded string or original string
    """
    if six.PY2:
        src_len = len(orig)
        missing_len = length - src_len
        if missing_len > 0:
            orig = '{}{}'.format(orig, (missing_len * char))
    else:
        orig = str(orig).rjust(length, char)
    return orig