@staticmethod<EOL><INDENT>def _decode(value):<DEDENT>
if value.isdigit():<EOL><INDENT>return int(value)<EOL><DEDENT>if isinstance(value, bytes):<EOL><INDENT>return value.decode('<STR_LIT:utf-8>')<EOL><DEDENT>else:<EOL><INDENT>return value<EOL><DEDENT>
decode byte strings and convert to int where needed