@staticmethod
def is_readable_byte_stream(handle) -> bool:
    return (hasattr(handle, 'read') and hasattr(handle, 'mode') and ('b' in handle.mode))
@staticmethod
def is_readable_byte_stream(handle) -> bool:
    return (hasattr(handle, 'read') and hasattr(handle, 'mode') and ('b' in handle.mode))