def modcheck(value):
 rearranged = (value[4:] + value[:4])
 converted = [char_value(char) for char in rearranged]
 integerized = int(''.join([str(i) for i in converted]))
 return ((integerized % 97) == 1)

def modcheck ( value ) : rearranged = ( value [ 4 : ] + value [ : 4 ] ) converted = [ char_value ( char ) for char in rearranged ] integerized = int ( '' . join ( [ str ( i ) for i in converted ] ) ) return ( ( integerized % 97 ) == 1 )
check if the value string passes the mod97-test .