just simple modify your sequence by this :
def _get_prefix_suffix(self):
def _interpolate(s, d):
return (s % d) if s else ''
def _int_to_roman(input):
ints = (1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1)
...