def METHOD_NAME(s):
    """
    Compatibility between Python2 and 3 - Python 2 has no str.decode but we can process str directly.
    Python3 needs the byte data to be decoded so we can process the string data.
    """
    if hasattr(s, 'decode'):
        return s.decode('utf-8')
    return s